From d2c8348bf7d6fd7f0d79a649f77b824b7b6fa322 Mon Sep 17 00:00:00 2001 From: itsrubberduck Date: Thu, 21 May 2026 10:35:44 +0200 Subject: [PATCH] Refine PM frequency overview cards --- app/pages/pm.vue | 148 ++++++++++++++++++++++++++++------------------- 1 file changed, 89 insertions(+), 59 deletions(-) diff --git a/app/pages/pm.vue b/app/pages/pm.vue index 7191190..5addd60 100644 --- a/app/pages/pm.vue +++ b/app/pages/pm.vue @@ -535,57 +535,49 @@ :key="freq.displayKey" class="frequency-card" > -
-
-
- {{ freq.type }} - {{ freq.label }} -
-
- {{ freq.callsign }} -
+
+
+ {{ freq.type }} + + +
-
+ +
{{ freq.frequency }}
+ +
+ {{ freq.label }} + · {{ freq.callsign }} + · ATIS {{ freq.atisCode }} +
-
@@ -3334,30 +3326,68 @@ watch(() => activeFrequency.value, (newFreq) => { } .frequency-card { display: flex; - min-height: 118px; + min-height: 136px; flex-direction: column; justify-content: space-between; - gap: 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.32); - padding: 12px; + overflow: hidden; } -.frequency-card-main, -.frequency-card-footer { +.frequency-card-content { display: flex; - align-items: flex-start; - justify-content: space-between; - gap: 12px; + flex: 1 1 auto; + flex-direction: column; + justify-content: center; + padding: 14px; } -.frequency-card-footer { +.frequency-card-topline { + display: flex; align-items: center; + justify-content: space-between; + min-height: 24px; +} +.frequency-value { + margin-top: 6px; + font-family: ui-monospace, SFMono-Regular, Menlo, monospace; + font-size: 30px; + font-weight: 750; + line-height: 1; + color: #fff; +} +.frequency-description { + margin-top: 6px; + min-height: 18px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + font-size: 12px; + color: rgba(255, 255, 255, 0.5); } .frequency-actions { - display: inline-flex; - align-items: center; - gap: 4px; - flex: 0 0 auto; + display: grid; + grid-template-columns: 1fr 1fr; + border-top: 1px solid rgba(255, 255, 255, 0.1); + background: rgba(34, 211, 238, 0.06); +} +.frequency-action-btn { + min-height: 38px; + font-size: 11px; + font-weight: 700; + letter-spacing: 0.12em; + color: rgba(103, 232, 249, 0.95); + transition: background 120ms ease, color 120ms ease; + -webkit-tap-highlight-color: transparent; +} +.frequency-action-btn + .frequency-action-btn { + border-left: 1px solid rgba(255, 255, 255, 0.1); +} +.frequency-action-btn:hover { + background: rgba(34, 211, 238, 0.14); + color: #cffafe; +} +.frequency-action-btn:active { + background: rgba(34, 211, 238, 0.22); } /* Tablet / desktop: use the extra space ----------------------------------- */