From 8211e22d8643aab59840dd8e4ad372981a974b68 Mon Sep 17 00:00:00 2001 From: Tagaishi Date: Fri, 1 Sep 2023 21:53:51 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Add=20custom=20font=20sizing=20f?= =?UTF-8?q?or=20app=20name=20(#1341)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 💄 Add custom font sizing for app name * 🚸 Added maximum font size --- public/locales/en/layout/modals/add-app.json | 4 ++++ .../Tabs/AppereanceTab/AppereanceTab.tsx | 10 ++++++++++ .../Overview/AvailableElementsOverview.tsx | 1 + .../Dashboard/Tiles/Apps/AppTile.tsx | 18 +++++++++--------- src/modules/Docker/ContainerActionBar.tsx | 1 + src/tools/config/getFrontendConfig.ts | 1 + src/types/app.ts | 1 + 7 files changed, 27 insertions(+), 9 deletions(-) diff --git a/public/locales/en/layout/modals/add-app.json b/public/locales/en/layout/modals/add-app.json index 683ba8724..afa4b7540 100644 --- a/public/locales/en/layout/modals/add-app.json +++ b/public/locales/en/layout/modals/add-app.json @@ -54,6 +54,10 @@ "text": "This may take a few seconds" } }, + "appNameFontSize":{ + "label":"App Name Font Size", + "description":"Set the font size for when the app name is shown on the tile." + }, "appNameStatus":{ "label":"App Name Status", "description":"Choose where you want the title to show up, if at all.", diff --git a/src/components/Dashboard/Modals/EditAppModal/Tabs/AppereanceTab/AppereanceTab.tsx b/src/components/Dashboard/Modals/EditAppModal/Tabs/AppereanceTab/AppereanceTab.tsx index 43a371a0a..29921c776 100644 --- a/src/components/Dashboard/Modals/EditAppModal/Tabs/AppereanceTab/AppereanceTab.tsx +++ b/src/components/Dashboard/Modals/EditAppModal/Tabs/AppereanceTab/AppereanceTab.tsx @@ -67,6 +67,16 @@ export const AppearanceTab = ({ /> {form.values.appearance.appNameStatus === 'normal' && ( <> + { + form.setFieldValue('appearance.appNameFontSize', value); + }} + />