Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quarto dashboard alignment of content in value boxes #10672

Open
mcanouil opened this issue Sep 1, 2024 Discussed in #10505 · 0 comments
Open

Quarto dashboard alignment of content in value boxes #10672

mcanouil opened this issue Sep 1, 2024 Discussed in #10505 · 0 comments
Labels
dashboards enhancement New feature or request themes Related to HTML theming or any other style related issue (like highlight-style)

Comments

@mcanouil
Copy link
Collaborator

mcanouil commented Sep 1, 2024

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 #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

@mcanouil mcanouil added enhancement New feature or request dashboards html Issues with HTML and related web technology (html/css/scss) themes Related to HTML theming or any other style related issue (like highlight-style) and removed html Issues with HTML and related web technology (html/css/scss) labels Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dashboards enhancement New feature or request themes Related to HTML theming or any other style related issue (like highlight-style)
Projects
None yet
Development

No branches or pull requests

1 participant