From 9dabe63677e71c815f2dafeb4ef5ee4c72d0158b Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Thu, 24 Apr 2025 16:03:51 -0300 Subject: [PATCH] fix: Standardize font sizes using Tailwind classes across frontend components (#7770) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- .../components/ListSelectionComponent/index.tsx | 8 ++++---- .../GenericNode/components/NodeDescription/index.tsx | 8 ++++---- .../GenericNode/components/NodeName/index.tsx | 2 +- .../GenericNode/components/NodeStatus/index.tsx | 4 ++-- .../GenericNode/components/OutputComponent/index.tsx | 2 +- .../components/common/paginatorComponent/index.tsx | 6 +++--- .../core/chatComponents/ContentBlockDisplay.tsx | 4 ++-- .../core/chatComponents/ContentDisplay.tsx | 12 ++++++------ .../core/chatComponents/DurationDisplay.tsx | 2 +- .../components/sideBarFolderButtons/index.tsx | 6 +++--- .../customization/components/custom-parameter.tsx | 2 +- src/frontend/src/modals/EmbedModal/embed-modal.tsx | 2 +- .../IOFieldView/components/session-selector.tsx | 2 +- .../modals/IOModal/components/chat-view-wrapper.tsx | 2 +- .../chatInput/components/button-send-wrapper.tsx | 4 ++-- .../chatView/chatInput/components/no-input.tsx | 2 +- .../components/audio-settings/components/header.tsx | 2 +- .../components/chatView/chatMessage/chat-message.tsx | 6 +++--- .../chatView/chatMessage/components/content-view.tsx | 2 +- .../chatMessage/components/edit-message-field.tsx | 2 +- .../chatView/chatMessage/components/edit-message.tsx | 2 +- .../modals/IOModal/components/sidebar-open-view.tsx | 2 +- .../src/modals/apiModal/codeTabs/code-tabs.tsx | 2 +- src/frontend/src/modals/apiModal/new-api-modal.tsx | 2 +- .../components/fileRendererComponent/index.tsx | 2 +- .../components/toolbar-button.tsx | 2 +- .../components/nodeToolbarComponent/index.tsx | 2 +- src/frontend/src/pages/MainPage/pages/empty-page.tsx | 4 +--- .../src/pages/MainPage/pages/filesPage/index.tsx | 2 +- src/frontend/src/style/applies.css | 2 +- src/frontend/tailwind.config.mjs | 4 ++++ 31 files changed, 54 insertions(+), 52 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/ListSelectionComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/ListSelectionComponent/index.tsx index 4780e23fe..2bef4121b 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/ListSelectionComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/ListSelectionComponent/index.tsx @@ -93,11 +93,11 @@ const ListItem = ({ )}
-
+
{item.name}
{"metaData" in item && item.metaData && ( -
+
{item.metaData}
)} @@ -105,7 +105,7 @@ const ListItem = ({ {isHovered || isFocused ? (
-
+
Select
@@ -286,7 +286,7 @@ const ListSelectionComponent = ({ name={nodeClass?.icon || "unknown"} className="h-[18px] w-[18px] text-muted-foreground" /> -
+
{nodeClass?.display_name}
diff --git a/src/frontend/src/CustomNodes/GenericNode/components/NodeDescription/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/NodeDescription/index.tsx index 581b09beb..26aa75f61 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/NodeDescription/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/NodeDescription/index.tsx @@ -78,7 +78,7 @@ export default function NodeDescription({ @@ -153,7 +153,7 @@ export default function NodeDescription({