Skip to content

Commit ca7c85d

Browse files
Tweak CSS to remove awkward line wrapping; widen select box (#1917)
* Tweak CSS to remove awkward line wrapping; widen select box * Use `w-64` * Overflow with ellipsis --------- Co-authored-by: Benjamin Leonard <[email protected]>
1 parent 28598e1 commit ca7c85d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/pages/SiloUtilizationPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export function SiloUtilizationPage() {
8282
<div className="mb-3 mt-8 flex justify-between gap-3">
8383
<Listbox
8484
selected={filterId}
85-
className="w-48"
85+
className="w-64"
8686
aria-labelledby="filter-id-label"
8787
name="filter-id"
8888
items={projectItems}

app/pages/project/instances/instance/tabs/MetricsTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export function MetricsTab() {
135135
<>
136136
<div className="mb-4 flex justify-between">
137137
<Listbox
138-
className="w-48"
138+
className="w-64"
139139
aria-label="Choose disk"
140140
name="disk-name"
141141
selected={diskName}

app/pages/system/UtilizationPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const MetricsTab = () => {
108108
<div className="mb-3 mt-8 flex justify-between gap-3">
109109
<Listbox
110110
selected={filterId}
111-
className="w-48"
111+
className="w-64"
112112
aria-labelledby="filter-id-label"
113113
name="filter-id"
114114
items={siloItems}

libs/ui/lib/listbox/Listbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export const Listbox = <Value extends string = string>({
126126
)}
127127
{...props}
128128
>
129-
<div className="w-full px-3 text-left">
129+
<div className="w-full overflow-hidden overflow-ellipsis whitespace-pre px-3 text-left">
130130
{selectedItem ? (
131131
// labelString is one line, which is what we need when label is a ReactNode
132132
selectedItem.labelString || selectedItem.label

0 commit comments

Comments
 (0)