Repository navigation
fix(ios): align hourly forecast content across weather icons - #644
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Platform: ios Fix(zh-Hant): 修正天氣小工具每小時預報的溫度與降雨機率未對齊問題 Fix(en-US): fix misaligned temperatures and rain probabilities in hourly forecasts
YinCheng0106
force-pushed
the
fix/ios-widget-forecast-icon-alignment
branch
from
October 24, 2026 13:36
a4622e5 to
fb9ad50
Compare
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 1 selected item(s). |
Member
|
LGTM |
PiscesXD
approved these changes
Oct 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
這個 PR 做了什麼
修正 iOS 天氣小工具的每小時預報排版問題。原本不同天氣的 SF Symbols 圖示高度不一致,導致溫度與降雨機率出現上下錯位的情況。
這次在
HourlyForecastPointView的天氣圖示加入固定高度,讓每個預報欄位的內容能保持水平對齊。修改內容
ios/DPIPWidgets/DPIPWidgets.swift.frame(height: compact ? 32 : 40)。這次只有一行 SwiftUI 排版調整,不涉及 API、資料結構或天氣圖示對應邏輯。
相關 issue
沒有對應的 issue。
怎麼驗
tool/dev/test_ios.sh:本機測試通過。tool/commit.sh --push:無 Blocker,1 項 Warning。UI Before / After
以下對照 Medium 與 Large Widget 在修正前後的顯示結果。
修正後,不同天氣圖示不再影響下方溫度及降雨機率的垂直排列,讓每小時預報資訊維持一致的水平線。
檢查清單