Skip to content

Commit

Permalink
fix: missing descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed May 25, 2022
1 parent 2452448 commit 47cf58d
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 30 deletions.
7 changes: 5 additions & 2 deletions apps/meteor/client/views/admin/settings/SettingsGroupCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import { useRoute, TranslationKey, useTranslation } from '@rocket.chat/ui-contex
import React, { ReactElement } from 'react';

import Card from '../../../components/Card';
import MarkdownText from '../../../components/MarkdownText';

const clampStyle = css`
display: -webkit-box;
overflow: hidden;
-webkit-line-clamp: 4;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
`;

Expand Down Expand Up @@ -38,7 +39,9 @@ const SettingsGroupCard = ({ id, title, description }: SettingsGroupCard): React
<Box fontScale='h4'>{t(title)}</Box>
</Card.Title>
<Card.Body height='x88'>
<Box className={clampStyle}>{description && t.has(description) && t(description)}</Box>
<Box className={clampStyle}>
{description && t.has(description) && <MarkdownText variant='inlineWithoutBreaks' content={t(description)} />}
</Box>
</Card.Body>
<Card.Footer>
<Button small onClick={handleOpenGroup}>
Expand Down
Loading

0 comments on commit 47cf58d

Please sign in to comment.