popcodeorg / popcodeorg/popcode

Page title bar overflows and has odd sizing behavior on small and/or zoomed screens

Abierto
#2,515 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
JavaScript
Estrellas
191
Forks
143
Merge medio
4 d 11 h
PR fusionados (30 d)
5

Descripción

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

image

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:

image

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:

image

Environment

  • Mac Catalina
  • Safari 13.1.1

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Abre la classroom assignment enlazada y reproduce el desbordamiento de la title-bar en viewports pequeños y ampliados, especialmente en Safari; después, compara Chrome y Firefox. Inspecciona el marcado y los estilos de la title-bar para determinar cómo se comportan su tamaño y sus controles. Se considera completado cuando los títulos largos permanecen dentro de la barra, los controles siguen visibles y la barra no cubre el contenido de salida.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
css, html, javascript
Área
frontend, web-dev
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.