Portrait layouts are drawn as landscape on a landscape screen
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start with src/paperpi/plugin.py and the settings and preview code under src/paperpi/web/; inspect how layout dimensions are chosen after [display] rotation. Compare the met_no portrait layouts and their previews, then decide how layout shape should be represented and shown. Done means the chosen behavior is implemented consistently for layout selection, Preview, and Plugin Library pictures, with relevant documentation updated.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Found by txoof in the weather demo (M5 part 3c, 2026-10-10).
What happens
Some plugins have layouts made for tall (portrait) screens, e.g. met_no has portrait_hours and portrait_now. On a landscape screen (the demo uses 800 x 480), choosing one of them on the settings page and pressing Preview draws it at 800 x 480: the portrait layout is shown as a landscape picture. The layout list doesn't say which layouts are meant for which shape of screen, and a layout can't be seen at the shape it was made for.
PaperPi draws every layout at the screen's own size, after [display] rotation (a screen turned 90 or 270 degrees gives a tall area). There is no "portrait" setting of its own.
To decide
- Should a plugin say which shape each layout is for (wide, tall, any)?
- On the settings page: hide layouts that don't fit the screen's shape, list them separately, or show a warning next to them?
- Should Preview and the Plugin Library pictures draw a layout at the shape it is made for (e.g. 480 x 800), or always at the real screen's shape?
- Is the real need a portrait screen, which today means
rotation = 90or270in[display](the screen settings page comes in M5 part 5)?
Area
core (src/paperpi/plugin.py if layouts get a shape), web (src/paperpi/web/), plugins with tall layouts (met_no, maybe others), docs.
- Lingua principale
- Python
- Stelle
- 205
- Fork
- 17
- Merge medio
- 6h 12m
- PR unite (30g)
- 44
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di txoof/PaperPi
-
area:core bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
area:core enhancement hardware
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
area:core enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di txoof/PaperPi
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
KalicoCrew/kalico#1012 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
esphome/esphome.io#7657 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
VNG-Realisatie/gemma-zaken#2658 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
comp/gateway comp/plugins duplicate P3 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
NousResearch/hermes-agent#137019 ·
I maintainer di solito rispondono entro 1 giorno