Grid column headings are misaligned in HTML websites

Aperta Adatta ai principianti
#15,421 2 commenti 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
70/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
css, html, scss
Ambito
frontend

Direzione di ricerca

Il segnalatore indica src/resources/projects/website/navigation/quarto-nav.scss intorno alla riga 95, dove gli stili di navigazione del website probabilmente entrano in collisione con le larghezze .g-col-6 della grid. Inizia riproducendo con i due file forniti (_quarto.yml con project: type: website più il blocco ::: grid in index.qmd), eseguendo quarto preview e restringendo la finestra oltre il breakpoint lg; renderizza anche lo stesso blocco come documento standalone per confermare la differenza. Fatto significa che le intestazioni ## Left e ## Right restano sotto le rispettive colonne su schermi stretti in un progetto website senza modificare l'output standalone; controlla il CSS compilato dal tema website invece del solo sorgente SCSS.

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

Descrizione

bootstrap enhancement themes
I have:
  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide
Bug description

Grid column headers are misaligned on narrow screens in HTML pages that are part of a website, but not standalone HTML documents.

_quarto.yml

project:
  type: website

index.qmd

---
title: "Grid columns: headings misaligned below the lg breakpoint on narrow screens"
---

::: grid
::: {.g-col-6}
## Left
:::
::: {.g-col-6}
## Right
:::
:::

quarto preview in this directory looks like this on a wide monitor

image

When I make the window narrower, it looks like this

image

I think this is due to https://github.com/quarto-dev/quarto-cli/blob/7a77d06e959a1c4f0e7ac462b08d8b69a6717e48/src/resources/projects/website/navigation/quarto-nav.scss#L95 ?

Steps to reproduce

Create these two files in a fresh dir

_quarto.yml

project:
  type: website

index.qmd

---
title: "Grid columns: headings misaligned below the lg breakpoint on narrow screens"
---

::: grid
::: {.g-col-6}
## Left
:::
::: {.g-col-6}
## Right
:::
:::

run quarto preview and play with the window width.

Actual behavior

No response

Expected behavior

No response

Your environment
  • IDE: Positron 2026.11.1 build 4
  • OS: MacOS 27.2.1
Quarto check output
❯ quarto check                                                                             
Quarto 1.11.9
[✓] Checking environment information...
      Quarto cache location: /Users/matti/Library/Caches/quarto
      Project root: /Users/matti/Documents/quarto-repr
      Project config: /Users/matti/Documents/quarto-repr/_quarto.yml
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.10.0: OK
      Dart Sass version 1.101.0: OK
      Deno version 2.9.8: OK
      Typst version 0.15.1: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.11.9
      Path: /Applications/quarto/bin
Lingua principale
JavaScript
Stelle
6.2k
Fork
492
Merge medio
15h 15m
PR unite (30g)
94

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 quarto-dev/quarto-cli

Tutte le issue di quarto-dev/quarto-cli

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.