You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 27c00d4
Browse filesBrowse the repository at this point in the historyBrowse files
fix(app): give Slowest cards the ChartCard header divider
Route the "Slowest Queries" (ClickHouse page) and Slowest Events tile
titles through a titled ChartContainer instead of a bare Text, so they
get the same full-bleed card header divider as sibling chart cards and
their tables are properly bounded by the reactive container.
Remove the headerless ChartCard prop (padding-only patch) in favor of
this approach, keep the ChartCardProps interface, narrowed style type,
and enforced paddingInline divider invariant, and add ChartCard tests.
Co-authored-by: Cursor <cursoragent@cursor.com>
with its own heading (e.g. a bespoke table card) should still route that heading
175
+
through a titled `ChartContainer` rather than a bare `Text`, so it gets the same
176
+
card header — divider and top padding included — instead of sitting flush against
177
+
the top border. The tile-level controls (fullscreen, line/bar display switcher,
178
+
kebab menu) belong to dashboard tiles and are intentionally **not** part of
179
+
`ChartCard`.
174
180
175
181
| Prop | Type | Description |
176
182
|------|------|-------------|
177
-
|`children`|`ReactNode`| The chart, usually a `DB*Chart`that renders a `ChartContainer`|
178
-
|`style`|`CSSProperties`| Sizing/overflow override — pass a fixed `height`, or `flex: 1; height: 100%` to fill a flex row |
183
+
|`children`|`ReactNode`| The chart, usually a `DB*Chart`(or a titled `ChartContainer`)|
184
+
|`style`|`CSSProperties`| Sizing/overflow override — pass a fixed `height`, or `flex: 1; height: 100%` to fill a flex row (`paddingInline` is pinned to keep the divider aligned) |
0 commit comments