Quarto column widths are ignored in civilytics-reveal. {.column width="60%"} and {.column width="40%"} both render as equal halves, so a chart meant to take 60% of the slide ends up at about 44% of slide width once the gap is subtracted.
With flex: 0 1 auto the inline widths apply, and the columns shrink together to absorb the gap.
Notes for the upstream fix
Keep equal columns as the default when no width is given. For example, apply flex: 1 only to columns without an inline width, or use flex: 0 1 auto everywhere and let Quarto's default widths stand.
The theme's gap: 3em is wide once widths are honored. 1.5em worked for a 60/40 chart-plus-bullets layout.
The hand-rolled .two-col grid is unaffected.
## Problem
Quarto column widths are ignored in `civilytics-reveal`. `{.column width="60%"}` and `{.column width="40%"}` both render as equal halves, so a chart meant to take 60% of the slide ends up at about 44% of slide width once the gap is subtracted.
## Cause
`civilytics.scss` (extension 1.0.0, civilytics 0.3.1):
```scss
.reveal .column {
flex: 1;
min-width: 0;
}
```
`flex: 1` sets `flex-basis: 0` and equal grow, which overrides the inline `width` Quarto writes on each column.
## Fix used in a deck (deck-local CSS)
```css
.reveal .columns {
gap: 1.5em;
}
.reveal .columns > .column {
flex: 0 1 auto;
}
```
With `flex: 0 1 auto` the inline widths apply, and the columns shrink together to absorb the gap.
## Notes for the upstream fix
- Keep equal columns as the default when no `width` is given. For example, apply `flex: 1` only to columns without an inline width, or use `flex: 0 1 auto` everywhere and let Quarto's default widths stand.
- The theme's `gap: 3em` is wide once widths are honored. 1.5em worked for a 60/40 chart-plus-bullets layout.
- The hand-rolled `.two-col` grid is unaffected.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
Quarto column widths are ignored in
civilytics-reveal.{.column width="60%"}and{.column width="40%"}both render as equal halves, so a chart meant to take 60% of the slide ends up at about 44% of slide width once the gap is subtracted.Cause
civilytics.scss(extension 1.0.0, civilytics 0.3.1):flex: 1setsflex-basis: 0and equal grow, which overrides the inlinewidthQuarto writes on each column.Fix used in a deck (deck-local CSS)
With
flex: 0 1 autothe inline widths apply, and the columns shrink together to absorb the gap.Notes for the upstream fix
widthis given. For example, applyflex: 1only to columns without an inline width, or useflex: 0 1 autoeverywhere and let Quarto's default widths stand.gap: 3emis wide once widths are honored. 1.5em worked for a 60/40 chart-plus-bullets layout..two-colgrid is unaffected.jared referenced this issue2026-10-15 15:31:25 -04:00