Explorar o código

Revert "save vert space"

This reverts commit 8921063497a770c329f81844462561d8fee95fc3.
Aiden Cline hai 3 meses
pai
achega
30a36c495e
Modificáronse 1 ficheiros con 3 adicións e 28 borrados
  1. 3 28
      packages/opencode/src/cli/cmd/tui/routes/session/header.tsx

+ 3 - 28
packages/opencode/src/cli/cmd/tui/routes/session/header.tsx

@@ -2,10 +2,9 @@ import { type Accessor, createMemo, Match, Show, Switch } from "solid-js"
 import { useRouteData } from "@tui/context/route"
 import { useSync } from "@tui/context/sync"
 import { useTheme } from "@tui/context/theme"
-import { EmptyBorder, SplitBorder } from "@tui/component/border"
+import { SplitBorder } from "@tui/component/border"
 import type { Session } from "@opencode-ai/sdk/v2"
 import { useKeybind } from "../../context/keybind"
-import { useTerminalDimensions } from "@opentui/solid"
 
 const Title = (props: { session: Accessor<Session> }) => {
   const { theme } = useTheme()
@@ -25,25 +24,12 @@ export function Header() {
 
   const { theme } = useTheme()
   const keybind = useKeybind()
-  const dimensions = useTerminalDimensions()
-  const tall = createMemo(() => dimensions().height > 40)
 
   return (
     <box flexShrink={0}>
-      <Show when={!tall()}>
-        <box
-          height={1}
-          border={["top"]}
-          borderColor={theme.backgroundPanel}
-          customBorderChars={{
-            ...EmptyBorder,
-            horizontal: "▄",
-          }}
-        />
-      </Show>
       <box
-        paddingTop={tall() ? 1 : 0}
-        paddingBottom={tall() ? 1 : 0}
+        paddingTop={1}
+        paddingBottom={1}
         paddingLeft={2}
         paddingRight={1}
         {...SplitBorder}
@@ -84,17 +70,6 @@ export function Header() {
           </Match>
         </Switch>
       </box>
-      <Show when={!tall()}>
-        <box
-          height={1}
-          border={["bottom"]}
-          borderColor={theme.backgroundPanel}
-          customBorderChars={{
-            ...EmptyBorder,
-            horizontal: "▀",
-          }}
-        />
-      </Show>
     </box>
   )
 }