File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
web-common/src/features/canvas/components/leaderboard Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 163163 class =" grid-wrapper gap-px overflow-x-auto"
164164 style:grid-template-columns ="repeat(auto-fit, minmax( {estimatedTableWidth +
165165 LEADERBOARD_WRAPPER_PADDING }px, 1fr))"
166- bind:clientWidth ={leaderboardWrapperWidth }
167166 >
168167 {#each visibleDimensions as dimension (dimension .name )}
169168 {#if dimension .name }
170- <div class =" leaderboard-wrapper" >
169+ <div
170+ class =" leaderboard-wrapper"
171+ bind:clientWidth ={leaderboardWrapperWidth }
172+ >
171173 <Leaderboard
172174 leaderboardShowContextForAllMeasures
173175 timeControlsReady
Original file line number Diff line number Diff line change 1+ import { MEASURES_PADDING } from "@rilldata/web-common/features/dashboards/leaderboard/leaderboard-widths.ts" ;
2+
13export const MIN_DIMENSION_COLUMN_WIDTH = 150 ;
24export const DEFAULT_DIMENSION_COLUMN_WIDTH = 164 ;
3- export const LEADERBOARD_WRAPPER_PADDING = 56 ;
5+ export const LEADERBOARD_WRAPPER_PADDING = 56 + MEASURES_PADDING ;
46
57export function getDimensionColumnWidth (
68 wrapperWidth : number ,
You can’t perform that action at this time.
0 commit comments