Skip to content

Commit ad13659

Browse files
committed
Fix workspace home model submenu visibility and label overlap
1 parent 771a3c4 commit ad13659

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

src/styles/workspace-home.css

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,20 +227,28 @@
227227
}
228228

229229
.workspace-home-model-dropdown {
230-
width: 190px !important;
230+
min-width: 190px !important;
231+
width: max-content !important;
231232
}
232233

233234
.workspace-home-model-option {
234235
position: relative;
235236
display: flex;
236237
align-items: center;
238+
width: 100%;
237239
border-radius: 8px;
238240
}
239241

240242
.workspace-home-model-option .workspace-home-model-toggle {
241-
width: 175px;
242-
flex: 1;
243-
justify-content: space-between;
243+
min-width: 175px;
244+
width: 100%;
245+
flex: 1 1 auto;
246+
padding-right: 48px;
247+
}
248+
249+
.workspace-home-model-option .workspace-home-model-toggle .ds-popover-item-label {
250+
flex: none;
251+
white-space: nowrap;
244252
}
245253

246254
.workspace-home-model-option.is-active .workspace-home-model-toggle,
@@ -270,6 +278,7 @@
270278
min-width: 80px;
271279
padding: 6px;
272280
opacity: 0;
281+
visibility: hidden;
273282
pointer-events: none;
274283
transform: translateX(-4px);
275284
transition: opacity 120ms ease, transform 120ms ease;
@@ -288,6 +297,7 @@
288297
.workspace-home-model-option:hover .workspace-home-model-submenu,
289298
.workspace-home-model-option:focus-within .workspace-home-model-submenu {
290299
opacity: 1;
300+
visibility: visible;
291301
pointer-events: auto;
292302
transform: translateX(0);
293303
}

0 commit comments

Comments
 (0)