From 3778d87e65c86b636656d720484c0b3f21babdac Mon Sep 17 00:00:00 2001 From: Lalit Sharma Date: Mon, 23 Feb 2026 22:57:34 +0000 Subject: [PATCH] Refine map legends layout and labels --- CHANGELOG.md | 7 + apps/mobile/package.json | 2 +- apps/mobile/src/screens/TimerScreen.tsx | 170 +++++++++++------------- 3 files changed, 82 insertions(+), 97 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5206276..4745edd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.20] — 2026-02-23 + +### Changed +- Moved the map direction legend controls to the lower-left legend stack so they no longer block the map action buttons. +- Simplified map legend labels by removing `On/Off` state text for direction, eclipse visibility, and central-path overlays. +- Bumped `apps/mobile` version to `1.1.20`. + ## [1.1.19] — 2026-02-23 ### Fixed diff --git a/apps/mobile/package.json b/apps/mobile/package.json index ab1491d..db1f775 100644 --- a/apps/mobile/package.json +++ b/apps/mobile/package.json @@ -1,6 +1,6 @@ { "name": "@eclipse-timer/mobile", - "version": "1.1.19", + "version": "1.1.20", "private": true, "main": "index.js", "scripts": { diff --git a/apps/mobile/src/screens/TimerScreen.tsx b/apps/mobile/src/screens/TimerScreen.tsx index 4c87f2c..9154396 100644 --- a/apps/mobile/src/screens/TimerScreen.tsx +++ b/apps/mobile/src/screens/TimerScreen.tsx @@ -532,84 +532,81 @@ export default function TimerScreen({ {mapTypeText} - - - - - Eclipse Visible - - {timer.showVisibleOverlay ? "On" : "Off"} - + + {timer.result && timer.isResultCurrentForPin ? ( + + {contactDirectionOverlays.map((direction) => ( + + + + {direction.label} + + + ))} + + ) : null} - - - - {centralLegendLabel} - - {timer.showCentralOverlay ? "On" : "Off"} - - + + + + + Eclipse Visible + + - {timer.result && timer.isResultCurrentForPin ? ( - - - Directions - - {timer.showDirectionsOverlay ? "On" : "Off"} - - - {contactDirectionOverlays.map((direction) => ( - + + - - {direction.label} - + {centralLegendLabel} - ))} - - ) : null} + + + @@ -1109,10 +1106,13 @@ const styles = StyleSheet.create({ borderRadius: 2, backgroundColor: "white", }, - mapLegend: { + mapLegendStack: { position: "absolute", left: 10, bottom: 10, + gap: 6, + }, + mapLegend: { paddingVertical: 7, paddingHorizontal: 8, borderRadius: 10, @@ -1151,35 +1151,13 @@ const styles = StyleSheet.create({ fontSize: 11, fontWeight: "600", }, - mapLegendState: { - color: "#d6d6d6", - fontSize: 10, - fontWeight: "700", - textTransform: "uppercase", - }, mapDirectionLegend: { - position: "absolute", - right: 10, - bottom: 10, borderRadius: 10, backgroundColor: "rgba(0,0,0,0.62)", paddingHorizontal: 8, paddingVertical: 7, gap: 4, }, - mapDirectionLegendHeader: { - flexDirection: "row", - alignItems: "center", - justifyContent: "space-between", - gap: 8, - }, - mapDirectionLegendTitle: { - color: "#e2e2e2", - fontSize: 10, - fontWeight: "700", - textTransform: "uppercase", - letterSpacing: 0.4, - }, mapDirectionLegendRow: { flexDirection: "row", alignItems: "center",