Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 47 additions & 4 deletions src/styles/workspace-home.css
Original file line number Diff line number Diff line change
Expand Up @@ -227,20 +227,28 @@
}

.workspace-home-model-dropdown {
width: 190px !important;
min-width: 190px !important;
width: max-content !important;
}

.workspace-home-model-option {
position: relative;
display: flex;
align-items: center;
width: 100%;
border-radius: 8px;
}

.workspace-home-model-option .workspace-home-model-toggle {
width: 175px;
flex: 1;
justify-content: space-between;
min-width: 175px;
width: 100%;
flex: 1 1 auto;
padding-right: 48px;
Comment on lines 242 to +246

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid reserving worktree count space in local model rows

WorkspaceHomeRunControls.tsx:203-227 only renders the 1x/submenu affordance when runMode === "worktree", but this new padding-right: 48px applies to every .workspace-home-model-toggle. In local mode that leaves an empty gutter on each row and, because the popover now sizes to max-content, makes long model names clip or overflow about 48px sooner even though there is no count control to make room for. This is a visible regression for local-only workspaces with longer provider/model labels.

Useful? React with 👍 / 👎.

}

.workspace-home-model-option .workspace-home-model-toggle .ds-popover-item-label {
flex: none;
white-space: nowrap;
}

.workspace-home-model-option.is-active .workspace-home-model-toggle,
Expand Down Expand Up @@ -270,6 +278,7 @@
min-width: 80px;
padding: 6px;
opacity: 0;
visibility: hidden;
pointer-events: none;
transform: translateX(-4px);
transition: opacity 120ms ease, transform 120ms ease;
Expand All @@ -288,6 +297,7 @@
.workspace-home-model-option:hover .workspace-home-model-submenu,
.workspace-home-model-option:focus-within .workspace-home-model-submenu {
opacity: 1;
visibility: visible;
pointer-events: auto;
transform: translateX(0);
}
Expand Down Expand Up @@ -479,6 +489,39 @@
}
}

@media (max-width: 560px) {
.workspace-home-model-dropdown {
max-width: calc(100vw - 24px) !important;
}

.workspace-home-model-option .workspace-home-model-toggle .ds-popover-item-label {
min-width: 0;
flex: 1 1 auto;
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
}

.workspace-home-model-submenu {
top: calc(100% + 6px);
left: auto;
right: 6px;
transform: translateY(-4px);
}

.workspace-home-model-submenu::before {
top: -8px;
left: 0;
width: 100%;
height: 8px;
}

.workspace-home-model-option:hover .workspace-home-model-submenu,
.workspace-home-model-option:focus-within .workspace-home-model-submenu {
transform: translateY(0);
}
}

@media (max-width: 720px) {
.workspace-home {
padding: 24px 20px;
Expand Down