mirror of
https://github.com/alexhopeoconnor/dnsmasq-webui.git
synced 2026-10-22 01:42:08 +10:00
Process runner, save/restore flow, status script, listen-address IPv6
- Process: Add IProcessHandle, ProcessOutputLine, StartAsync; RunAsync via StartAsync+WaitForExitAsync. Wait for stdout/stderr stream close before reading to fix empty restart output. ProcessTimeouts; ReloadService/StatusController/LogsService use config timeouts. - Effective config: Rename reload→restart in save/restore result types and UI. Save modal: show restart output, danger alert, Stop editing/Continue editing (yellow), footer one-line; fallback exit code when no output; ensure pre visibility (CSS). Restore failed: combined output helper. - Status script: When dnsmasq dead, run dnsmasq --test and show config error in status block (Docker harness; DNSMASQ_CONF). - listen-address: Allow IPv6 (ValidateDraftValue accepts InterNetworkV6). - Docker test: RestartCommand uses DnsmasqOptions timeout; DnsmasqOptions RestartTimeoutSeconds.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
/* Keep footer buttons on one line */
|
||||
.ec-save-modal-footer {
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
/* Ensure the dialog stacks above the backdrop when both are siblings inside .modal */
|
||||
.modal-dialog {
|
||||
position: relative;
|
||||
@@ -54,8 +59,29 @@
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
/* Command output: ensure text is always visible (avoid inherited color/visibility issues) */
|
||||
.ec-save-modal-pre {
|
||||
font-size: 0.8125rem;
|
||||
max-height: 12rem;
|
||||
overflow: auto;
|
||||
color: var(--bs-body-color, #212529);
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
min-height: 2.5rem;
|
||||
}
|
||||
|
||||
/* Alert icon in reload/restore failed states: larger, spacing, aligned with text */
|
||||
.ec-save-modal-alert {
|
||||
--ec-save-modal-alert-icon-gap: 0.5rem;
|
||||
}
|
||||
|
||||
.ec-save-modal-alert-icon {
|
||||
flex-shrink: 0;
|
||||
font-size: 1.25rem;
|
||||
margin-right: var(--ec-save-modal-alert-icon-gap);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.ec-save-modal-alert-text {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user