Other formats, other links and code links are hidden on narrow screens

オープン
#15,389 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
67/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript

調査の方向性

Start by rendering the supplied Quarto document with quarto render, then inspect the generated HTML and its responsive styles for nav[role=doc-toc] and #quarto-margin-sidebar. Check how the three link groups are placed and hidden below 768 px, including pages with and without a table of contents. Done means the links remain reachable at narrow widths while preserving sensible placement on wide screens.

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

説明

accessibility bug html

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

Below the md breakpoint (768 px), an HTML page hides its "Other Formats", "Other Links" and "Code Links" groups.
Quarto puts them inside nav[role=doc-toc], or in #quarto-margin-sidebar when the page has no table of contents, and both are hidden on narrow screens.
A reader on a phone can't reach the other formats, the code, or the extra links of the page.

This issue was split out of #5961.
#15354 handles the table of contents, and this one covers the links.

Manuscripts don't have the problem.
They render the links in the title block metadata at every width.
The fix may change where the links sit on wide screens too, not only on narrow ones.

Related:

  • #5961.
  • #15354.
  • #13141.
Steps to reproduce
---
title: "Links"
toc: false
format:
  html: default
  gfm: default
other-links:
  - text: Example
    href: https://example.com
code-links:
  - text: Repo
    href: https://github.com
---

## One

Text.

## Two

Text.
  1. Render the document with quarto render.
  2. Open the HTML file and resize the window from 1400 px to 375 px wide.
Actual behavior

At 768 px and above, the three groups show in the right margin.
Below 768 px, they are hidden, with or without toc: true.

Expected behavior

The links stay reachable at every width.

Your environment
  • Quarto: development build from main (1d80652ba).
  • OS: macOS 27.2.
  • Browser: Brave (Chromium).
Quarto check output
Quarto 99.9.9
[✓] Checking environment information...
      Quarto cache location: /Users/mcanouil/Library/Caches/quarto
      Project: none found (single-file mode)
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.13.0: OK
      Dart Sass version 1.107.1: OK
      Deno version 2.9.8: OK
      Typst version 0.15.1: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 99.9.9
      commit: 1d80652ba64516c46173120048892c6694be9fb6
      Path: /Users/mcanouil/Projects/quarto-dev/quarto-cli/package/dist/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 を短くまとめたダイジェスト。