Skip to content
Snippets Groups Projects
Unverified Commit 195f90a8 authored by Douglas Fabris's avatar Douglas Fabris Committed by GitHub
Browse files

Regression: Missing settings group descriptions (#25639)

parent 31ae30f3
No related branches found
No related tags found
No related merge requests found
......@@ -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;
`;
......@@ -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}>
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment