quarto-dev / quarto-dev/quarto-cli

Quarto dashboard alignment of content in value boxes

Open
#10,672 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

dashboards enhancement themes
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

The CSS could be improved to ensure the icons are aligned.

InputOutput
---
title: "Quarto Playground"
format: dashboard
---

## Row

::: {.valuebox icon="pencil" color="blue"}
Articles per day

12 articles
:::

::: {.valuebox icon="pencil" color="green"}
Articles per month

60 articles per month but not per day
:::

::: {.valuebox icon="pencil" color="yellow"}
Articles per day

150 articles
:::

::: {.valuebox icon="pencil" color="yellow"}
Articles per day

150 articles
:::

::: {.valuebox icon="pencil" color="yellow"}
Articles per day

150 articles
:::

::: {.valuebox icon="pencil" color="yellow"}
Articles per day

150 articles
:::

::: {.valuebox icon="pencil" color="yellow"}
Articles per day

150 articles
:::

image
Discussed in https://github.com/quarto-dev/quarto-cli/discussions/10505

Originally posted by xueyinghan August 13, 2024

Description

Would it be possible to have a feature for the value boxes when creating Quarto dashboards so that the top and bottom align and the content inside the value boxes re-size automatically or to re-size the content without using CSS?

For instance, the medal icon for United States is higher in the rendered dashboard because United States takes up 2 lines:
Screenshot 2024-08-12 at 5 24 38 PM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided Quarto dashboard reproduction and compare the value-box layout for labels that wrap to multiple lines. Review the discussion in #10505 for context; done means the icons and content align consistently across value boxes without requiring user-supplied CSS.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.