Commit add202c
authored
fix: fullscreen transition visibility issue (#182)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Always render the chart card and the fullscreen dialog, controlling
visibility via Dialog open and passing explicit isFullscreen flags to
prevent transition flicker.
>
> - **Dashboard/Usage Chart
(`src/features/dashboard/usage/usage-metric-chart.tsx`)**:
> - Always render base `Card` with `UsageMetricChartContent`
(`isFullscreen: false`); remove conditional non-fullscreen wrapper.
> - Always render `Dialog` (visibility via `open={isFullscreen}`) with
`DialogContent` and nested `Card` containing `UsageMetricChartContent`
(`isFullscreen: true`).
> - Clean up classes on `DialogContent` (drop `border-0`) and inner
fullscreen `Card` retains `border-0`.
> - Simplify fullscreen toggle handling via `onOpenChange` without
conditional JSX blocks.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
4f29090. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 4efd81e commit add202c
1 file changed
+27
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
143 | 141 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
148 | 149 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
167 | 163 | | |
168 | 164 | | |
169 | 165 | | |
0 commit comments