From 11bd10f4552c836ec8d80ba33f6290238b686d92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Ctan-nhu=E2=80=9D?= <“tan@harness.io”> Date: Thu, 10 Aug 2023 10:41:25 -0700 Subject: [PATCH] CODE-520: Fixed text wrapping on buttons in Compare page --- .../BranchTagSelect/BranchTagSelect.module.scss | 1 + web/src/components/BranchTagSelect/BranchTagSelect.tsx | 3 ++- .../CompareContentHeader/CompareContentHeader.module.scss | 8 ++++++-- .../CompareContentHeader.module.scss.d.ts | 2 +- .../Compare/CompareContentHeader/CompareContentHeader.tsx | 6 +++--- web/src/pages/PullRequest/Conversation/SystemComment.tsx | 3 +-- 6 files changed, 14 insertions(+), 9 deletions(-) diff --git a/web/src/components/BranchTagSelect/BranchTagSelect.module.scss b/web/src/components/BranchTagSelect/BranchTagSelect.module.scss index 4ebf838fa..1eec2ec79 100644 --- a/web/src/components/BranchTagSelect/BranchTagSelect.module.scss +++ b/web/src/components/BranchTagSelect/BranchTagSelect.module.scss @@ -8,6 +8,7 @@ html[class=''] { --border: 1px solid var(--grey-200) !important; --background-color-active: var(--white) !important; --box-shadow: none !important; + white-space: nowrap !important; &:active, &:hover, diff --git a/web/src/components/BranchTagSelect/BranchTagSelect.tsx b/web/src/components/BranchTagSelect/BranchTagSelect.tsx index 0894d8a3c..a0d5d95fe 100644 --- a/web/src/components/BranchTagSelect/BranchTagSelect.tsx +++ b/web/src/components/BranchTagSelect/BranchTagSelect.tsx @@ -42,6 +42,7 @@ export const BranchTagSelect: React.FC = ({ forBranchesOnly, labelPrefix, placeHolder, + className, ...props }) => { const [query, onQuery] = useState('') @@ -50,7 +51,7 @@ export const BranchTagSelect: React.FC = ({ return (