From 2bf3e60929376e72480c026ff040c2d7247d23d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Hegyi?= Date: Thu, 28 Sep 2023 16:01:39 +0200 Subject: [PATCH 1/2] fix mui input label size and appearance --- apps/sensenet/src/context/ThemeProvider.tsx | 5 +++++ packages/sn-controls-react/src/fieldcontrols/textarea.tsx | 1 + 2 files changed, 6 insertions(+) diff --git a/apps/sensenet/src/context/ThemeProvider.tsx b/apps/sensenet/src/context/ThemeProvider.tsx index e9d13632c..5b004f34e 100644 --- a/apps/sensenet/src/context/ThemeProvider.tsx +++ b/apps/sensenet/src/context/ThemeProvider.tsx @@ -129,6 +129,11 @@ export const ThemeProvider: React.FunctionComponent = (props) => { '@font-face': [larsseit], }, }, + MuiInputLabel: { + root: { + fontSize: '1.3rem', + }, + }, }, }) diff --git a/packages/sn-controls-react/src/fieldcontrols/textarea.tsx b/packages/sn-controls-react/src/fieldcontrols/textarea.tsx index 59eca51b2..37fa5088b 100644 --- a/packages/sn-controls-react/src/fieldcontrols/textarea.tsx +++ b/packages/sn-controls-react/src/fieldcontrols/textarea.tsx @@ -42,6 +42,7 @@ export const Textarea: React.FC> = multiline={true} fullWidth={true} helperText={props.hideDescription ? undefined : props.settings.Description} + InputLabelProps={{ shrink: true }} /> ) case 'browse': From 2d9e4b55bcb6778d67ee509e6367b2f3bcc5266d Mon Sep 17 00:00:00 2001 From: HegyiOliver Date: Thu, 28 Sep 2023 16:38:41 +0200 Subject: [PATCH 2/2] update snapshot --- .../test/__snapshots__/textarea.test.tsx.snap | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/sn-controls-react/test/__snapshots__/textarea.test.tsx.snap b/packages/sn-controls-react/test/__snapshots__/textarea.test.tsx.snap index c4d670d82..6ebae8ac3 100644 --- a/packages/sn-controls-react/test/__snapshots__/textarea.test.tsx.snap +++ b/packages/sn-controls-react/test/__snapshots__/textarea.test.tsx.snap @@ -20,6 +20,11 @@ exports[`Textarea field control in browse view should show the displayname and f exports[`Textarea field control in edit/new view should set all the props 1`] = `