diff options
| author | Adam <[email protected]> | 2026-01-16 15:22:37 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2026-01-16 15:49:35 -0600 |
| commit | 95f7403daff172beb1dc6c16766348a222e9f670 (patch) | |
| tree | 9fe6ae4a3b47c39fc35b24a4bd859b7098ad21e6 /packages | |
| parent | 14d1e2028730657e165b371b6a85a88c496fe586 (diff) | |
| download | opencode-95f7403daff172beb1dc6c16766348a222e9f670.tar.gz opencode-95f7403daff172beb1dc6c16766348a222e9f670.zip | |
fix(app): truncate workspace title
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/app/src/pages/layout.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/app/src/pages/layout.tsx b/packages/app/src/pages/layout.tsx index 74ad8d19d..c25512a15 100644 --- a/packages/app/src/pages/layout.tsx +++ b/packages/app/src/pages/layout.tsx @@ -1195,7 +1195,7 @@ export default function Layout(props: ParentProps) { <div class="px-2 py-1"> <div class="group/trigger relative"> <Collapsible.Trigger class="flex items-center justify-between w-full pl-2 pr-16 py-1.5 rounded-md hover:bg-surface-raised-base-hover"> - <div class="flex items-center gap-1 min-w-0"> + <div class="flex items-center gap-1 min-w-0 flex-1"> <div class="flex items-center justify-center shrink-0 size-6"> <Icon name="branch" size="small" /> </div> @@ -1203,7 +1203,7 @@ export default function Layout(props: ParentProps) { <Show when={!local()} fallback={ - <span class="text-14-medium text-text-base"> + <span class="text-14-medium text-text-base min-w-0 truncate"> {workspaceStore.vcs?.branch ?? getFilename(props.directory)} </span> } @@ -1217,8 +1217,8 @@ export default function Layout(props: ParentProps) { renameWorkspace(props.directory, trimmed) setEditor("value", workspaceValue()) }} - class="text-14-medium text-text-base" - displayClass="text-14-medium text-text-base" + class="text-14-medium text-text-base min-w-0 truncate" + displayClass="text-14-medium text-text-base min-w-0 truncate" editing={workspaceEditActive()} stopPropagation={false} openOnDblClick={false} |
