popcodeorg / popcodeorg/popcode
Page title bar overflows and has odd sizing behavior on small and/or zoomed screens
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 191
- Fork
- 143
- Merge medio
- 4g 11h
- PR unite (30g)
- 5
Descrizione
Describe the bug
Take a look at a classroom assignment that has a longish title, on a small or zoomed-in view. The title bar stays a small size (height: 2.4vh;), while the text gets relatively larger, overflowing the header boundaries, and overlapping page content. This is especially a problem if I am zoomed in, as I usually do when presenting code to students over Zoom, because they tend to have smaller screens (often just smartphones).
This acts a little differently between Chrome and Safari. On Chrome, the vh-based sizing keeps these elements small, even when the page is zoomed-in. In Safari, these elements increase in size as the page is zoomed. But, even when a non-Safari browser is used at a normal-ish size (say, 1000px wide), problems can easily arise from medium-length titles. Here’s Firefox at 1000px wide:
To Reproduce
Enter in a medium-long page title while using popcode in a medium-small viewport – especially while using Safari.
Expected behavior
This title bar would probably make more sense if it acted more like a "tab" in a browser UI.
- Long titles would be truncated with ellipses (here’s how to do so with just CSS).
- It may be easier to do this if the refresh & collapse buttons are moved before the text, but it would probably be better to rearrange the HTML structure a bit, so that the overflow can be hidden and text can truncated, without pushing these UI buttons out of view
- Text shouldn’t overflow past the edge of the title bar, and the title bar shouldn’t cover up any content in the output web page.
Here are tabs in Chrome and Safari browsers, to illustrate what I mean:
Environment
- Mac Catalina
- Safari 13.1.1
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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.
Direzione di ricerca
Apri la classroom assignment collegata e riproduci l'overflow della title-bar in viewport piccoli e con zoom, soprattutto in Safari, quindi confronta Chrome e Firefox. Esamina il markup e gli stili della title-bar per determinare come si comportano le sue dimensioni e i suoi controlli. Il lavoro è completato quando i titoli lunghi rimangono all'interno della barra, i controlli restano visibili e la barra non copre il contenuto dell'output.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- css, html, javascript
- Ambito
- frontend, web-dev
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100