|
227 | 227 | } |
228 | 228 |
|
229 | 229 | .workspace-home-model-dropdown { |
230 | | - width: 190px !important; |
| 230 | + min-width: 190px !important; |
| 231 | + width: max-content !important; |
231 | 232 | } |
232 | 233 |
|
233 | 234 | .workspace-home-model-option { |
234 | 235 | position: relative; |
235 | 236 | display: flex; |
236 | 237 | align-items: center; |
| 238 | + width: 100%; |
237 | 239 | border-radius: 8px; |
238 | 240 | } |
239 | 241 |
|
240 | 242 | .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; |
244 | 252 | } |
245 | 253 |
|
246 | 254 | .workspace-home-model-option.is-active .workspace-home-model-toggle, |
|
270 | 278 | min-width: 80px; |
271 | 279 | padding: 6px; |
272 | 280 | opacity: 0; |
| 281 | + visibility: hidden; |
273 | 282 | pointer-events: none; |
274 | 283 | transform: translateX(-4px); |
275 | 284 | transition: opacity 120ms ease, transform 120ms ease; |
|
288 | 297 | .workspace-home-model-option:hover .workspace-home-model-submenu, |
289 | 298 | .workspace-home-model-option:focus-within .workspace-home-model-submenu { |
290 | 299 | opacity: 1; |
| 300 | + visibility: visible; |
291 | 301 | pointer-events: auto; |
292 | 302 | transform: translateX(0); |
293 | 303 | } |
|
479 | 489 | } |
480 | 490 | } |
481 | 491 |
|
| 492 | +@media (max-width: 560px) { |
| 493 | + .workspace-home-model-dropdown { |
| 494 | + max-width: calc(100vw - 24px) !important; |
| 495 | + } |
| 496 | + |
| 497 | + .workspace-home-model-option .workspace-home-model-toggle .ds-popover-item-label { |
| 498 | + min-width: 0; |
| 499 | + flex: 1 1 auto; |
| 500 | + white-space: normal; |
| 501 | + overflow-wrap: anywhere; |
| 502 | + word-break: break-word; |
| 503 | + } |
| 504 | + |
| 505 | + .workspace-home-model-submenu { |
| 506 | + top: calc(100% + 6px); |
| 507 | + left: auto; |
| 508 | + right: 6px; |
| 509 | + transform: translateY(-4px); |
| 510 | + } |
| 511 | + |
| 512 | + .workspace-home-model-submenu::before { |
| 513 | + top: -8px; |
| 514 | + left: 0; |
| 515 | + width: 100%; |
| 516 | + height: 8px; |
| 517 | + } |
| 518 | + |
| 519 | + .workspace-home-model-option:hover .workspace-home-model-submenu, |
| 520 | + .workspace-home-model-option:focus-within .workspace-home-model-submenu { |
| 521 | + transform: translateY(0); |
| 522 | + } |
| 523 | +} |
| 524 | + |
482 | 525 | @media (max-width: 720px) { |
483 | 526 | .workspace-home { |
484 | 527 | padding: 24px 20px; |
|
0 commit comments