fix: 进度条(Bar)宽度弹性占满剩余空间, 随屏幕自适应

This commit is contained in:
AskaEth committed 2026-08-22 13:32:50 +08:00
1 parent 60021ef1e6
commit b204de7aeb
1 file changed
+1
+1
View File
@@ -699,6 +699,7 @@ 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%; } #total-bar, #file-bar { width: 100%; }
#total-bar Bar, #file-bar Bar { width: 1fr; }
#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; }