From 1c84f81379cfd3909b76dbf446d137d42454d489 Mon Sep 17 00:00:00 2001 From: ThePangel Date: Tue, 3 Feb 2026 20:39:53 +0100 Subject: [PATCH] Added the ability to resize the callsign from 0.1 to 2.0 of its base size --- src/components/Header.jsx | 92 +++++++++++++++++--------------- src/components/SettingsPanel.jsx | 64 ++++++++++++++++------ src/lang/en.json | 1 + src/lang/es.json | 1 + src/utils/config.js | 1 + 5 files changed, 99 insertions(+), 60 deletions(-) diff --git a/src/components/Header.jsx b/src/components/Header.jsx index 3545dc4..9067f56 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -19,7 +19,7 @@ export const Header = ({ isFullscreen }) => { return ( -
{/* Callsign & Settings */}
- 0.1 && config.callsignSize <= 2 + ? `${22 * config.callsignSize}px` + : "22px", fontWeight: '900', color: 'var(--accent-amber)', cursor: 'pointer', fontFamily: 'Orbitron, monospace', whiteSpace: 'nowrap' + }} onClick={onSettingsClick} title="Click for settings" > @@ -44,37 +48,37 @@ export const Header = ({ {config.version && v{config.version}}
- + {/* UTC Clock */}
UTC - {utcTime} {utcDate}
- + {/* Local Clock - Clickable to toggle 12/24 hour format */} -
LOCAL - {localTime} {localDate}
- + {/* Weather & Solar Stats */}
{localWeather?.data && (() => { @@ -85,12 +89,12 @@ export const Header = ({ const tempC = Math.round(rawC); const windLabel = localWeather.data.windUnit || 'mph'; return ( -
- {localWeather.data.icon} - - {tempF}°F/{tempC}°C - -
+
+ {localWeather.data.icon} + + {tempF}°F/{tempC}°C + +
); })()}
@@ -108,7 +112,7 @@ export const Header = ({ {spaceWeather?.data?.sunspotNumber || '--'}
- + {/* Settings & Fullscreen Buttons */}
+ {/* Callsign Size*/} +
+
+ + { + if (e.target.value >= 0.1 && e.target.value <= 2.0) { + setCallsignSize(e.target.value) + }}} + style={{ + width: '100%', + padding: '10px', + background: 'var(--bg-tertiary)', + border: '1px solid var(--border-color)', + borderRadius: '6px', + color: 'var(--text-primary)', + fontSize: '14px', + fontFamily: 'JetBrains Mono, monospace', + boxSizing: 'border-box' + }} + /> +
+
+ {/* Grid Square */}