Move spinner next to Close button in OperationLog footer
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user