Skip to content

Commit

Permalink
fix(components): added TextClamp to title and width in TotalLayoutHeader
Browse files Browse the repository at this point in the history
Ticket: issue/MainLibrary-193
Reviewed-by: @MIGUELez11
Refs: #157
  • Loading branch information
fermarinsanchez authored May 24, 2024
1 parent ad5e7af commit 51abcb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
} from './TotalLayoutHeader.constants';
import { TotalLayoutHeaderStyles } from './TotalLayoutHeader.styles';
import CrossIcon from './crossIcon';
import { TextClamp } from '../../../typography/TextClamp';

const TotalLayoutHeader = ({
title,
Expand Down Expand Up @@ -56,9 +57,11 @@ const TotalLayoutHeader = ({
direction={compact ? 'row' : 'column'}
>
{getTitle()}
<Text as="h3" className={classes.headerSubtitle} color="primary">
{formValues.title || formTitlePlaceholder}
</Text>
<TextClamp lines={1}>
<Text as="h3" className={classes.headerSubtitle} color="primary">
{formValues.title || formTitlePlaceholder}
</Text>
</TextClamp>
</Stack>
</Stack>
</Stack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const TotalLayoutHeaderStyles = createStyles(
fontSize: '18px',
fontWeight: 400,
lineHeight: '24px',
width: compact ? '40vw' : '45vw',
// marginLeft: !compact && '40px',
},
}),
Expand Down

0 comments on commit 51abcb2

Please sign in to comment.