Skip to content

Commit fa6da65

Browse files
workcursoragent
andcommitted
fix(app): restore Opencodex sidebar defaults after upstream merge
Default sidebar open and use lg breakpoint for sidebar toggle to match layout nav. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 71ce0af commit fa6da65

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/app/src/components/titlebar.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ export function Titlebar() {
384384
</Show>
385385
<div class="flex items-center gap-1 shrink-0">
386386
<TooltipKeybind
387-
class={web() ? "hidden xl:flex shrink-0 ml-14" : "hidden xl:flex shrink-0 ml-2"}
387+
class={web() ? "hidden lg:flex shrink-0 ml-14" : "hidden lg:flex shrink-0 ml-2"}
388388
placement="bottom"
389389
title={language.t("command.sidebar.toggle")}
390390
keybind={command.keybind("sidebar.toggle")}
@@ -399,7 +399,7 @@ export function Titlebar() {
399399
<Icon size="small" name={layout.sidebar.opened() ? "sidebar-active" : "sidebar"} />
400400
</Button>
401401
</TooltipKeybind>
402-
<div class="hidden xl:flex items-center shrink-0">
402+
<div class="hidden lg:flex items-center shrink-0">
403403
<Show when={params.dir}>
404404
<div
405405
class="flex items-center shrink-0 w-8 mr-1"

‎packages/app/src/context/layout.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export const { use: useLayout, provider: LayoutProvider } = createSimpleContext(
233233
{ ...target, migrate },
234234
createStore({
235235
sidebar: {
236-
opened: false,
236+
opened: true,
237237
width: DEFAULT_SIDEBAR_WIDTH,
238238
workspaces: {} as Record<string, boolean>,
239239
workspacesDefault: false,

0 commit comments

Comments
 (0)