diff --git a/tui/gniza.tcss b/tui/gniza.tcss index accb7ed..e79e63a 100644 --- a/tui/gniza.tcss +++ b/tui/gniza.tcss @@ -193,21 +193,23 @@ SelectionList { border: thick $accent; } -#ol-header { - height: auto; - margin: 0 0 1 0; -} - #ol-title { text-style: bold; color: #00cc00; - width: 1fr; + margin: 0 0 1 0; +} + +#ol-footer { + height: auto; + margin: 1 0 0 0; } #ol-spinner { width: auto; - min-width: 3; + min-width: 4; height: 1; + margin: 0 0 0 2; + content-align: left middle; } #ol-log { @@ -216,7 +218,7 @@ SelectionList { } #ol-close { - margin: 1 0 0 0; + margin: 0; } /* Log viewer */ diff --git a/tui/widgets/operation_log.py b/tui/widgets/operation_log.py index 7c06cb3..cf30fcd 100644 --- a/tui/widgets/operation_log.py +++ b/tui/widgets/operation_log.py @@ -41,11 +41,11 @@ class OperationLog(ModalScreen[None]): def compose(self) -> ComposeResult: with Vertical(id="op-log"): - with Horizontal(id="ol-header"): - yield Static(self._title, id="ol-title") - yield SpinnerWidget(id="ol-spinner") + yield Static(self._title, id="ol-title") yield RichLog(id="ol-log", wrap=True, highlight=True, markup=True) - yield Button("Close", variant="primary", id="ol-close") + with Horizontal(id="ol-footer"): + yield Button("Close", variant="primary", id="ol-close") + yield SpinnerWidget(id="ol-spinner") def on_mount(self) -> None: # Flush any buffered writes