mirror of
https://gitcode.com/JianFeeeee/TrulyMEM-TrueHumanMEM.git
synced 2026-09-22 09:58:14 +00:00
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
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user