Add empty message for form actions (#12414)

<img width="503" alt="Capture d’écran 2025-06-02 à 15 55 36"
src="https://github.com/user-attachments/assets/9b3f60ae-7a13-45f8-aa87-ba32211e832f"
/>
This commit is contained in:
Thomas Trompette
2025-06-02 18:04:39 +02:00
committed by GitHub
parent e71aef5a3a
commit a508f4a4fb
6 changed files with 132 additions and 19 deletions

View File

@ -5,17 +5,18 @@ export const LINE_HEIGHT = 24;
const StyledFormFieldInputRowContainer = styled.div<{
multiline?: boolean;
maxHeight?: number;
}>`
display: flex;
flex-direction: row;
position: relative;
${({ multiline }) =>
${({ multiline, maxHeight }) =>
multiline
? css`
line-height: ${LINE_HEIGHT}px;
min-height: ${3 * LINE_HEIGHT}px;
max-height: ${5 * LINE_HEIGHT}px;
max-height: ${maxHeight ?? 5 * LINE_HEIGHT}px;
`
: css`
height: 32px;