Stats: the admin bar sparkline sits below the center of the bar

Aperta Adatta ai principianti
#55,385 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
php, wordpress
Ambito
frontend

Direzione di ricerca

Lo sparkline viene posizionato dal codice della barra di amministrazione in projects/packages/stats-admin/src/class-admin-bar.php, quindi inizia da lì e individua dove vengono impostati l'immagine e il suo offset CSS. Misura la barra renderizzata a 32px per confermare lo spostamento verticale di circa 3px descritto nella segnalazione. È completato quando il centro del grafico è allineato al centro della barra e la variante d'immagine per retina viene aggiunta o esplicitamente rinviata.

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

Descrizione

The stats sparkline in the admin bar looks low when compared with the icons and labels around it.

I measured it on a 32px bar:

  • The image box is centered. It goes from 4px to 28px.
  • The chart inside the image is not centered. The bars use only the rows 8 to 22 of the 24px image.
  • The center of the chart is 3px below the center of the bar.
  • The base of the chart is 5px below the baseline of the labels.

Most of the bars are 1px tall, so the chart reads as a dotted line near the bottom of the bar.

The image is also 119 × 24px with no 2x version, it looks blurry on retina screens.

Proposal
  • Center the chart inside the image, or move the image 3px up in the CSS (projects/packages/stats-admin/src/class-admin-bar.php).
  • Serve a 2x image for retina screens.
Lingua principale
PHP
Stelle
1.9k
Fork
913
Merge medio
1g 18h
PR unite (30g)
809

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 Automattic/jetpack

Tutte le issue di Automattic/jetpack

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.