Grid column headings are misaligned in HTML websites

オープン 初心者向け
#15,421 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
css, html, scss
領域
frontend

調査の方向性

報告者は src/resources/projects/website/navigation/quarto-nav.scss の 95 行目付近を指摘しており、そこでは website のナビゲーション スタイルが grid の .g-col-6 幅と衝突する可能性が高いです。まず、指定された 2 つのファイル(_quarto.yml に project: type: website、および index.qmd 内の ::: grid ブロック)で再現し、quarto preview を実行して lg ブレークポイントを越えてウィンドウを狭めてください。同じブロックをスタンドアロン文書としてもレンダリングし、差異を確認してください。完了条件は、website プロジェクトの狭い画面で ## Left と ## Right の見出しがそれぞれの列の下に留まり、スタンドアロン出力を変えないことです。SCSS ソースだけでなく、website テーマからコンパイルされた CSS を確認してください。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
JavaScript
スター
6.2k
フォーク
492
平均マージ
15時間 15分
マージ済み PR(30日)
94

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

quarto-dev/quarto-cli のほかの issue

quarto-dev/quarto-cli の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。