Просмотр исходного кода

fix: make the logo on the home screen non-selectable

David Hill 2 месяцев назад
Родитель
Сommit
b803a9732d
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      packages/opencode/src/cli/cmd/tui/component/logo.tsx

+ 4 - 3
packages/opencode/src/cli/cmd/tui/component/logo.tsx

@@ -1,4 +1,3 @@
-import { Installation } from "@/installation"
 import { TextAttributes } from "@opentui/core"
 import { For } from "solid-js"
 import { useTheme } from "@tui/context/theme"
@@ -14,8 +13,10 @@ export function Logo() {
       <For each={LOGO_LEFT}>
         {(line, index) => (
           <box flexDirection="row" gap={1}>
-            <text fg={theme.textMuted}>{line}</text>
-            <text fg={theme.text} attributes={TextAttributes.BOLD}>
+            <text fg={theme.textMuted} selectable={false}>
+              {line}
+            </text>
+            <text fg={theme.text} attributes={TextAttributes.BOLD} selectable={false}>
               {LOGO_RIGHT[index()]}
             </text>
           </box>