From 2b7baf7fa91733142808091b1e423e5616ed00e4 Mon Sep 17 00:00:00 2001 From: Jorge Padilla Date: Thu, 25 Jan 2024 10:09:38 -0500 Subject: [PATCH] fix(frontend): fix overflow issue in fields (#3560) --- .../components/Fields/Auth/AuthApiKeyBase.tsx | 4 ++-- web/src/components/Fields/Auth/AuthBasic.tsx | 4 ++-- .../Fields/KeyValueList/KeyValueList.styled.ts | 5 +++++ .../Fields/KeyValueList/KeyValueList.tsx | 16 ++++++++++------ .../Fields/Metadata/Metadata.styled.ts | 5 +++++ web/src/components/Fields/Metadata/Metadata.tsx | 16 ++++++++++------ web/src/components/Fields/PlainAuth/Fields.tsx | 4 ++-- 7 files changed, 36 insertions(+), 18 deletions(-) diff --git a/web/src/components/Fields/Auth/AuthApiKeyBase.tsx b/web/src/components/Fields/Auth/AuthApiKeyBase.tsx index 2e48be0dbd..feb938f702 100644 --- a/web/src/components/Fields/Auth/AuthApiKeyBase.tsx +++ b/web/src/components/Fields/Auth/AuthApiKeyBase.tsx @@ -12,7 +12,7 @@ const AuthApiKeyBase = ({baseName}: IProps) => ( ( ( ( theme.color.textSecondary}; font-size: ${({theme}) => theme.size.md}; `; + +export const Item = styled.div` + flex: 1; + overflow: hidden; +`; diff --git a/web/src/components/Fields/KeyValueList/KeyValueList.tsx b/web/src/components/Fields/KeyValueList/KeyValueList.tsx index 6c93dc88e5..4d0efbf6f4 100644 --- a/web/src/components/Fields/KeyValueList/KeyValueList.tsx +++ b/web/src/components/Fields/KeyValueList/KeyValueList.tsx @@ -29,13 +29,17 @@ const KeyValueList = ({ <> {fields.map((field, index) => ( - - - + + + + + - - - + + + + +