From acd6c7174f3c3f319b1ea88227c5f96031915fcd Mon Sep 17 00:00:00 2001 From: JianFeeeee <109188060+JianFeeeee@users.noreply.github.com> Date: Fri, 10 Apr 2026 19:37:09 +0800 Subject: [PATCH] fix: Fix input text not showing - Add global Input style with visible colors - Ensure text color is set correctly - Simplify component styles - Remove conflicting styles --- graph_memory_tui/styles/app.css | 11 +++++++ graph_memory_tui/styles/components.css | 40 ++++++++++---------------- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/graph_memory_tui/styles/app.css b/graph_memory_tui/styles/app.css index 6cf8c66..bbcb205 100644 --- a/graph_memory_tui/styles/app.css +++ b/graph_memory_tui/styles/app.css @@ -5,6 +5,17 @@ GraphMemoryApp { color: $text; } +/* 全局Input样式 - 确保可见 */ +Input { + background: $surface-lighten-1; + color: $text; + border: solid $primary; +} + +Input:focus { + border: double $accent; +} + LeftPanel { width: 1fr; dock: left; diff --git a/graph_memory_tui/styles/components.css b/graph_memory_tui/styles/components.css index 67d989b..73e22af 100644 --- a/graph_memory_tui/styles/components.css +++ b/graph_memory_tui/styles/components.css @@ -1,5 +1,20 @@ /* Component Styles for Graph Memory TUI */ +/* Input Box - 最重要 */ +InputBox { + background: $surface; + padding: 1 2; + height: auto; + border: solid $primary; +} + +InputBox Input { + width: 100%; + background: $surface-lighten-1; + color: $text; + border: none; +} + /* Config Section */ ConfigSection { background: $surface; @@ -32,31 +47,6 @@ ConfigSection Input { color: $text; } -ConfigSection Input:focus { - border: double $primary; - background: $surface-lighten-2; -} - -/* Input Box */ -InputBox { - background: $surface; - padding: 1; - height: auto; -} - -InputBox Input { - width: 1fr; - background: $surface; - color: $text; - border: solid $primary; - padding: 1; -} - -InputBox Input:focus { - border: double $accent; - background: $surface-lighten-1; -} - /* Other Components */ OperationLog { background: $surface-darken-1;