diff --git a/capsulflask/console.py b/capsulflask/console.py index 8632e1b..402f687 100644 --- a/capsulflask/console.py +++ b/capsulflask/console.py @@ -160,6 +160,8 @@ def detail(id): vm["state"] = vm_from_virt_model.state if needs_ssh_host_keys: vm["ssh_host_keys"] = vm_from_virt_model.ssh_host_keys + else: + vm["state"] = "unknown" if vm["state"] == "running" and not vm["ipv4"]: vm["state"] = "starting" diff --git a/capsulflask/static/style.css b/capsulflask/static/style.css index a82f126..925ec6c 100644 --- a/capsulflask/static/style.css +++ b/capsulflask/static/style.css @@ -241,7 +241,7 @@ thead { background: #bdc7b812; } td, th { - font: calc(0.40rem + 1vmin) monospace; + padding: 0.1em 1em; } table.small td, table.small th { @@ -282,6 +282,7 @@ th { text-align: left; } td { + font: calc(0.35rem + 0.95vmin) monospace; border-bottom: 2px dotted #777e7355; padding-top: 0.4rem; padding-bottom: 0.4rem;