Skip to content

Commit 9615e72

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

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

src/styles/workspace-home.css

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@
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 {
@@ -238,9 +239,15 @@
238239
}
239240

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

246253
.workspace-home-model-option.is-active .workspace-home-model-toggle,
@@ -270,6 +277,7 @@
270277
min-width: 80px;
271278
padding: 6px;
272279
opacity: 0;
280+
visibility: hidden;
273281
pointer-events: none;
274282
transform: translateX(-4px);
275283
transition: opacity 120ms ease, transform 120ms ease;
@@ -288,6 +296,7 @@
288296
.workspace-home-model-option:hover .workspace-home-model-submenu,
289297
.workspace-home-model-option:focus-within .workspace-home-model-submenu {
290298
opacity: 1;
299+
visibility: visible;
291300
pointer-events: auto;
292301
transform: translateX(0);
293302
}

0 commit comments

Comments
 (0)