Post search error footer sits under the sensor housing in iPhone landscape

オープン 初心者向け
#26,232 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
ios, swift
領域
frontend, mobile

調査の方向性

PagingFooterViewから始めて、エラー行がどのように制約されているかを確認してください。issueでは、safe areaに関する動作の不足と、先頭の16 ptのインデントが指摘されています。iPhoneを横向きにしてネットワークエラーを発生させ、投稿検索で不具合を再現してください。横向きのsafe area内にメッセージとRetryボタンが収まり、縦向きのレイアウトも引き続き正しい状態になれば完了です。WordPress.comサイトにアクセスできる場合は、Blazeキャンペーンも確認してください。

索引モデルが issue の本文から書いたものです。

説明

[Type] Bug Posts + Pages UI

The "An error occurred" footer in post search sits under the sensor housing in iPhone landscape: the message starts at the left screen edge and the Retry button runs to the right one.

What happens

PagingFooterView pins its error row to its own edges, with a 16 pt left indent and nothing on the right. It never follows the safe area, so in landscape both ends fall inside the 62 pt side insets.

Message Retry button Safe area
Landscape starts at x = 16 801–874 pt 62–812 pt
Portrait starts at x = 16 ends at the screen edge full width

Where it shows

  • Post search (PostSearchViewController) — reproduced.
  • Blaze campaigns (BlazeCampaignsViewController) uses the same error footer, so it is very likely affected too. Not checked: it needs a WordPress.com site.
  • The Reader streams use PagingFooterView only in its loading state (a centred spinner), so they're not affected.

Screenshots

Trunk 0a45a8b750, iPhone 18 Pro simulator, iOS 27.0, Jetpack.

Landscape Portrait
Landscape: ‘An error occurred’ starts at the left screen edge and Retry runs to the right edge, both under the sensor housing Portrait: the same footer sits inside the screen margins

Steps to reproduce

  1. Sign in to a self-hosted site.
  2. Open Posts and rotate to landscape.
  3. Make the site unreachable (we stopped a local WordPress), then search for any term.

Suggested fix

Pin the error row to the footer's safeAreaLayoutGuide (keeping the 16 pt indent on the leading side), so it lines up with the list content in landscape. Found while testing #26210, which fixes the same problem in the Reader stream headers.

主要言語
Swift
スター
3.9k
フォーク
1.2k
平均マージ
1日 16時間
マージ済み PR(30日)
95

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wordpress-mobile/WordPress-iOS のほかの issue

wordpress-mobile/WordPress-iOS の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。