fix: TUI 进度条宽度自适应屏幕 (CSS width 100%)
This commit is contained in:
1 parent
5b8160358e
commit
60021ef1e6
1 file changed
+1
@@ -698,6 +698,7 @@ from textual.widgets import (Footer, Header, Input, ProgressBar, RichLog,
|
|||||||
TUI_CSS = """
|
TUI_CSS = """
|
||||||
Screen { layout: vertical; }
|
Screen { layout: vertical; }
|
||||||
#top { height: 7; border: round $primary; padding: 0 1; }
|
#top { height: 7; border: round $primary; padding: 0 1; }
|
||||||
|
#total-bar, #file-bar { width: 100%; }
|
||||||
#stats-line { height: 1; content-align: left middle; }
|
#stats-line { height: 1; content-align: left middle; }
|
||||||
#chart-box { height: 6; border: round $secondary; padding: 0 1; }
|
#chart-box { height: 6; border: round $secondary; padding: 0 1; }
|
||||||
#speed-stats { height: 1; color: $text-muted; }
|
#speed-stats { height: 1; color: $text-muted; }
|
||||||
|
|||||||
Reference in new issue
Block a user