Code-copy button above the code block in sections using the column grid (`page-columns`)
Los mantenedores suelen responder en 1 día
@cderv ya está trabajando en esto.
Desde el 21/10/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Split from #13446, reported by mcanouil in https://github.com/quarto-dev/quarto-cli/issues/13446#issuecomment-6315320408.
When a section holds an element placed on the column grid, like a .column-margin div or a footnote with reference-location: margin, the copy button of a code block in that section sits above the code frame, half outside it.
---
title: "Copy button in a page-columns section"
format: html
reference-location: margin
---
## Section
```r
x <- 1
```
Text.[^1]
[^1]: Footnote.
The post-processor adds page-columns to the parent of any column element, so the section becomes a grid:
div.code-copy-outer-scaffold is then a grid item. A grid item does not let the margins of its children collapse through it, so the 1em top margin of div.sourceCode stays inside the scaffold, while the button is positioned at top: 0 of the scaffold.
Measured from the section top, same in Chromium, Firefox and WebKit:
| Section | Scaffold top | div.sourceCode top |
Button top |
|---|---|---|---|
| Plain section | 60.2 | 60.2 | 65.2 |
With a margin footnote or .column-margin div |
94.2 | 111.2 | 99.2 |
A .cell in the same section is not affected, as the cell is the grid item and the margin collapses through the scaffold inside it.
Moving the 1em margin from div.sourceCode to the scaffold for every code block fixes the grid case, but adds 17px in tabsets and between a filename header and its code, as .tab-pane div.sourceCode and .code-with-filename div.sourceCode reset this margin on div.sourceCode. We could limit the change to scaffolds placed directly in a page-columns element.
- Lenguaje dominante
- JavaScript
- Estrellas
- 6.2k
- Forks
- 492
- Merge medio
- 15 h 15 min
- PR fusionados (30 d)
- 94
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de quarto-dev/quarto-cli
-
bootstrap enhancement themes
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
quarto-dev/quarto-cli#15421 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
quarto-dev/quarto-cli#15408 ·
Los mantenedores suelen responder en 1 día
-
accessibility bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
quarto-dev/quarto-cli#15401 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
bug callouts docx regression
Dificultad 2/5 1-3 horas Aptitud para principiantes 81/100
quarto-dev/quarto-cli#15394 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug lightbox
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
quarto-dev/quarto-cli#15393 ·
Los mantenedores suelen responder en 1 día
Todos los issues de quarto-dev/quarto-cli
Issues similares
-
bug help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
LangerSword/gitone#7 ·
-
good first issue reliability security should-have
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 13 días
-
[BUG]: chunkSource protocol stripping truncates URLs or reads an inner schemePosiblemente ocupada @Bensonbenyi la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Mintplex-Labs/anything-llm#7338 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día