💄(frontend) add minor layout adjustments

Propose minor layout adjustments to ensure the DINUM version with French
copywriting does not look visually awkward due to line breaks.
This commit is contained in:
lebaudantoine
2026-01-05 17:43:24 +01:00
committed by aleb_the_flash
parent cadc186c62
commit 5769203705
4 changed files with 26 additions and 10 deletions

View File

@@ -66,6 +66,11 @@ export function ToastRecordingRequest({
name: participant?.name, name: participant?.name,
})} })}
{!options.isMenuOpen && ( {!options.isMenuOpen && (
<div
className={css({
marginLeft: '0.5rem',
})}
>
<Button <Button
size="sm" size="sm"
variant="text" variant="text"
@@ -76,6 +81,7 @@ export function ToastRecordingRequest({
> >
{t('openMenu')} {t('openMenu')}
</Button> </Button>
</div>
)} )}
</HStack> </HStack>
</StyledToastContainer> </StyledToastContainer>

View File

@@ -161,6 +161,7 @@ export const ControlsButton = ({
fullWidth fullWidth
onPress={handle} onPress={handle}
isDisabled={isDisabled} isDisabled={isDisabled}
size="compact"
> >
{t('button.start')} {t('button.start')}
</Button> </Button>

View File

@@ -29,9 +29,10 @@ export const RowWrapper = ({
className={css({ className={css({
width: '100%', width: '100%',
background: 'gray.100', background: 'gray.100',
padding: '8px', paddingBlock: '0.5rem',
paddingInline: '0',
display: 'flex', display: 'flex',
marginTop: '4px', marginTop: '0.25rem',
})} })}
> >
<div <div
@@ -40,6 +41,7 @@ export const RowWrapper = ({
display: 'flex', display: 'flex',
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
paddingInline: '0.25rem',
})} })}
> >
{/* fixme - doesn't handle properly material-symbols */} {/* fixme - doesn't handle properly material-symbols */}
@@ -47,10 +49,11 @@ export const RowWrapper = ({
</div> </div>
<div <div
className={css({ className={css({
flex: 5, flex: 6,
display: 'flex', display: 'flex',
alignItems: 'center', alignItems: 'center',
gap: '0.25rem', gap: '0.25rem',
paddingInlineEnd: '8px',
})} })}
> >
{children} {children}

View File

@@ -31,6 +31,12 @@ export const buttonRecipe = cva({
borderRadius: 4, borderRadius: 4,
'--square-padding': '0', '--square-padding': '0',
}, },
compact: {
borderRadius: 4,
paddingX: '0.5',
paddingY: '0.625',
'--square-padding': '{spacing.0.625}',
},
}, },
square: { square: {
true: { true: {