Skip to content

Commit 8f230d9

Browse files
Fix Searchable select text overlap (#1525)
<!-- Ensure the title clearly reflects what was changed. Provide a clear and concise description of the changes made. The PR should only contain the changes related to the issue, and no other unrelated changes. --> Fixes OPS-2905. <img width="375" height="354" alt="image" src="https://github.com/user-attachments/assets/9cb5cbf8-4102-4b00-b504-b6f9428e26ab" />
1 parent f5f08f3 commit 8f230d9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/react-ui/src/app/common/components/searchable-select.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,18 @@ export const SearchableSelect = <T extends React.Key>({
140140
role="combobox"
141141
loading={loading}
142142
aria-expanded={open}
143-
className="w-full justify-between w-full"
143+
className="w-full justify-between"
144144
onClick={(e) => {
145145
setOpen((prev) => !prev);
146146
e.preventDefault();
147147
}}
148148
data-testid="searchableSelectTrigger"
149149
>
150-
<span className="flex w-full truncate select-none">
150+
<span
151+
className={cn('w-full text-start truncate select-none', {
152+
'mr-8': showRefresh,
153+
})}
154+
>
151155
{selectedIndex > -1 && options[selectedIndex]
152156
? options[selectedIndex].label
153157
: placeholder}

0 commit comments

Comments
 (0)