Răsfoiți Sursa

fix(app): keep new tab button visible (#39366)

Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>
opencode-agent[bot] 2 săptămâni în urmă
părinte
comite
73bd8a264b
1 a modificat fișierele cu 19 adăugiri și 21 ștergeri
  1. 19 21
      packages/app/src/components/titlebar.tsx

+ 19 - 21
packages/app/src/components/titlebar.tsx

@@ -395,27 +395,25 @@ export function Titlebar(props: { update?: TitlebarUpdate; debugTools?: { visibl
                   }}
                   }}
                   onReorder={(keys) => tabsStoreActions.reorder(keys)}
                   onReorder={(keys) => tabsStoreActions.reorder(keys)}
                 />
                 />
-                <Show when={!creating()}>
-                  <TooltipV2
-                    placement="bottom"
-                    value={
-                      <>
-                        {language.t("command.session.new")}
-                        <KeybindV2 keys={newTabTooltipKeybind(command)} variant="neutral" />
-                      </>
-                    }
-                  >
-                    <IconButtonV2
-                      type="button"
-                      variant="ghost-muted"
-                      size="large"
-                      class="shrink-0"
-                      icon={<IconV2 name="plus" />}
-                      onClick={openNewTab}
-                      aria-label={language.t("command.session.new")}
-                    />
-                  </TooltipV2>
-                </Show>
+                <TooltipV2
+                  placement="bottom"
+                  value={
+                    <>
+                      {language.t("command.session.new")}
+                      <KeybindV2 keys={newTabTooltipKeybind(command)} variant="neutral" />
+                    </>
+                  }
+                >
+                  <IconButtonV2
+                    type="button"
+                    variant="ghost-muted"
+                    size="large"
+                    class="shrink-0"
+                    icon={<IconV2 name="plus" />}
+                    onClick={openNewTab}
+                    aria-label={language.t("command.session.new")}
+                  />
+                </TooltipV2>
                 <div class="flex-1" />
                 <div class="flex-1" />
                 <TitlebarV2Right state={v2RightState()} />
                 <TitlebarV2Right state={v2RightState()} />
               </div>
               </div>