Skip to content

Commit

Permalink
fix: max table height in dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
skokenes committed Oct 23, 2024
1 parent e690a7f commit c56d758
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/malloy-render/src/component/dashboard/dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@
font-size: 20px;
}

.dashboard-item-value-table {
/* Fit ten non-wrapped table rows */
max-height: 361px;
}

.dashboard-dimension-wrapper {
display: grid;
grid-template-rows: auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function DashboardItem(props: {
class="dashboard-item-value"
classList={{
'dashboard-item-value-measure': props.isMeasure,
'dashboard-item-value-table': rendering.renderAs === 'table',
}}
>
{rendering.renderValue}
Expand Down

0 comments on commit c56d758

Please sign in to comment.