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

Aperta Adatta ai principianti
#26,232 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
75/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
ios, swift
Ambito
frontend, mobile

Direzione di ricerca

Inizia da PagingFooterView e controlla come è vincolata la riga di errore; l’issue indica il comportamento mancante dell’area sicura e il rientro iniziale di 16 pt. Riproduci il problema nella ricerca dei post ruotando un iPhone in orizzontale e provocando un errore di rete. Il lavoro è completato quando il messaggio e il pulsante Retry restano entro l’area sicura in orizzontale e il layout in verticale rimane corretto; controlla anche le campagne Blaze se puoi accedere a un sito WordPress.com.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

[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.

Lingua principale
Swift
Stelle
3.9k
Fork
1.2k
Merge medio
1g 16h
PR unite (30g)
95

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wordpress-mobile/WordPress-iOS

Tutte le issue di wordpress-mobile/WordPress-iOS

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.