diff --git a/web/views/index.erb b/web/views/index.erb index 6a42409..854d973 100644 --- a/web/views/index.erb +++ b/web/views/index.erb @@ -38,9 +38,11 @@ .chat-entry-date { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: bold; } .short-name { display:inline-block; border-radius:4px; padding:0 2px; } .meta-info { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; } + .refresh-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; width: 100%; } .refresh-info { margin: 0; color: #555; } - .refresh-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } + .refresh-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-self: end; } .controls { display: flex; gap: 8px; align-items: center; } + .controls label { display: inline-flex; align-items: center; gap: 6px; } button { padding: 6px 10px; border: 1px solid #ccc; background: #fff; border-radius: 6px; cursor: pointer; } button:hover { background: #f6f6f6; } label { font-size: 14px; color: #333; } @@ -53,12 +55,12 @@ @media (max-width: 768px) { .row { flex-direction: column; align-items: stretch; gap: var(--pad); } .map-row { flex-direction: column; } - .controls { order: 2; flex-wrap: wrap; justify-content: flex-start; width: 100%; gap: 12px; } - .controls label { flex: 1 1 100%; } - .controls input[type="text"] { flex: 1 1 auto; min-width: 0; } - .controls button { align-self: flex-start; } + .controls { order: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; width: 100%; gap: 12px; } + .controls input[type="text"] { width: 100%; } + .controls button { justify-self: end; } .meta-info { order: 1; width: 100%; } - .refresh-actions { flex-direction: column; align-items: flex-start; gap: 6px; } + .refresh-row { grid-template-columns: 1fr; row-gap: 8px; } + .refresh-actions { flex-direction: row; align-items: center; gap: 8px; justify-self: start; flex-wrap: nowrap; } #map { order: 1; flex: none; max-width: 100%; height: 50vh; } #chat { order: 2; flex: none; max-width: 100%; height: 30vh; } #nodes th:nth-child(1), @@ -106,10 +108,12 @@