Grid column headings are misaligned in HTML websites

未关闭 适合新手
#15,421 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
70/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
css, html, scss
领域
frontend

调研方向

报告者指出 src/resources/projects/website/navigation/quarto-nav.scss 约第 95 行处,网站导航样式很可能与 grid 的 .g-col-6 宽度发生冲突。先使用给定的两个文件复现(_quarto.yml 中包含 project: type: website,以及 index.qmd 中的 ::: grid 块),运行 quarto preview 并将窗口缩窄到超过 lg 断点;同时将同一个块作为独立文档渲染,以确认差异。完成标准是:在 website 项目中,窄屏下 ## Left 和 ## Right 标题仍位于各自列下方,且不改变独立输出;应检查 website 主题编译后的 CSS,而不只是 SCSS 源码。

由索引模型根据 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 分钟
30 天内合并 PR
94

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

quarto-dev/quarto-cli 的其他 Issue

查看 quarto-dev/quarto-cli 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。