fix: 修正首次開帖標題上方重複的安全區留白 - #144
Merged
Merged
Conversation
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.
修復 PR135 發布後回報的「首次開啟帖子,標題上方仍有大段留白」。帖子內容的文字縮放層使用 Scaffold 外層的 MediaQuery,把 Scaffold 已處理的狀態列安全區重新帶回正文;40dp 狀態列會讓正常 8dp 間距變成 48dp,不需下拉刷新就會發生。改由 Scaffold body 內的 Builder 取得 context,讓文字縮放保留正確的正文安全區。
新增真實 ThreadPage 回歸,涵蓋 Android 360/384/533dp、左右瀏海橫屏、iOS、Windows、一般與放大字體、長標題捲動、旋轉與下拉刷新。新測試套用舊版產品程式時,有 10 項因重複安全區失敗;修正版相關 72 項測試全部通過。
關聯回報:首次開帖即有留白、小螢幕截圖。本機已確認並修復重複安全區;截圖中中文字上半部被截的像素表現尚未在 Android 實機重現,仍需於原裝置重測,不能視為已實機驗收。
驗證:
實機重測:首次開啟短/長標題帖子、手機直橫向切換及放大字體,確認標題緊接導覽列且可完整閱讀;再下拉刷新及定位樓層。此 PR 不變更版本、不合併或發布正式版。