Skip to content

Fix UI layout and map layer readability - #565

Merged
PiscesXD merged 5 commits into
mainfrom
fix-ui
Sep 3, 2026
Merged

Fix UI layout and map layer readability#565
PiscesXD merged 5 commits into
mainfrom
fix-ui

Conversation

@PiscesXD

@PiscesXD PiscesXD commented Sep 3, 2026

Copy link
Copy Markdown
Member

這個 PR 做了什麼

改善資料頁、首頁與地圖在不同螢幕尺寸、文字大小及地圖圖層組合下的顯示問題:

  • 地震報告的「今天/昨天」標籤旁補上完整日期。
  • 觀測排行最後幾筆資料增加底部留白,避免被下方導覽列遮住。
  • 首頁預報卡片與 EEW 卡片調整展開行為,避免收合狀態重複顯示速報,並避免文字或圖表被截斷。
  • 資料頁卡片與 onboarding 內容限制最大寬度,改善平板及大字體下的版面比例。
  • 調整 OSM 詳細底圖與震度圖層的上下順序,讓 OSM 地面資訊保留在震度洗底下,道路與標籤維持在上方;無震度區域不再被錯誤蓋成整片灰色。

相關 issue

無。

怎麼驗

  • tool/dev/analyze.sh
  • tool/dev/test.sh test/features/home/presentation/widgets/home_content_test.dart test/features/home/presentation/widgets/home_eew_section_test.dart
  • tool/dev/test.sh test/features/weather
  • tool/check.sh
  • tool/commit.sh

補充測試涵蓋:

  • 首頁 EEW 卡片只在全螢幕狀態顯示,標題與編號位於卡片內。
  • 預報圖表與詳細資訊在不同捲動位置不會被切成半行或半張圖。
  • 大字體下首頁溫度、預報時段及卡片內容不會溢出。
  • 資料頁網格在平板寬度下維持合理卡片高度。
  • OSM 地面、震度洗、道路、標籤及行政區邊界維持正確圖層順序。

檢查清單

  • tool/check/commits.sh origin/main..HEAD 通過
  • 一個 commit 一件事
  • flutter analyze 與相關測試通過
  • 新的使用者可見文字走 AppLocalizations
  • 使用既有的 AppSpacingAppRadiusAppMotion
  • 已補上對應的 UI 與圖層測試

Fix(zh-Hant): 地震報告的「今天/昨天」標籤旁會顯示該日日期
Fix(en-US): the earthquake report now shows the date next to its today/yesterday tag
Fix(zh-Hant): 修正觀測排行最末幾筆被下方導覽列蓋住
Fix(en-US): the last observation-ranking rows are no longer hidden by the bottom nav bar
Fix(zh-Hant): 大字體與平板螢幕下,首頁天氣與資料網格不再被拉寬或截斷
Fix(en-US): the home forecast and data grid no longer stretch or clip on wide screens and large text
Fix(zh-Hant): OSM 詳細底圖會留在震度洗底下,無震時不再整片變灰
Fix(en-US): the OSM detailed map stays visible under the township wash instead of turning the island flat grey when shaking is zero
Fix(zh-Hant): 首頁收合時不重複顯示地震速報卡片,展開後才顯示完整內容
Fix(en-US): the home no longer duplicates the earthquake alert card while collapsed and shows it when expanded
@PiscesXD PiscesXD changed the title Fix UI Fix UI layout and map layer readability Sep 3, 2026
@PiscesXD
PiscesXD merged commit f309292 into main Sep 3, 2026
6 checks passed
@PiscesXD
PiscesXD deleted the fix-ui branch September 3, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants