Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
fix: adapt height to narrow small
Browse files Browse the repository at this point in the history
  • Loading branch information
johanlahti committed Aug 1, 2023
1 parent 792d70d commit 483424f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const FoldedListbox = ({
height={gridHeight}
>
{!narrowSmall
&& <Grid container flexGrow={1} alignItems="center" sx={{ flexDirection: isRtl ? 'row-reverse' : 'row', flexWrap: 'nowrap' }} padding='0 8px' height={narrowLarge ? 'calc(100% - 1px)' : undefined}>
&& <Grid container flexGrow={1} alignItems="center" sx={{ flexDirection: isRtl ? 'row-reverse' : 'row', flexWrap: 'nowrap' }} padding='0 8px' height={narrowLarge ? '100%' : undefined}>
{isDrillDown
&& <Tooltip title={translator?.get('Listbox.DrillDown')} enterDelay={2000}>
<div>
Expand All @@ -142,7 +142,7 @@ export const FoldedListbox = ({
</Tooltip>
}
<Tooltip title={fieldName} enterDelay={2000}>
<Title variant="subtitle2" stardustTheme={stardustTheme} noWrap>
<Title variant="subtitle2" stardustTheme={stardustTheme} noWrap lineHeight={narrowLarge ? '100%' : 'normal'}>
{fieldName}
</Title>
</Tooltip>
Expand Down

0 comments on commit 483424f

Please sign in to comment.