mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 14:16:12 +00:00
fix(insights): size the mood calendar skeleton to the height most calendars settle at
Without a known window the skeleton assumed twelve weeks, which on a phone lands below the cell ceiling, so a short history's calendar grew a few pixels when it replaced it. Eight weeks reaches the ceiling on every width down to 360 px.
This commit is contained in:
1 parent
17b8b35397
commit
bde33b80c9
1 file changed
+3
-2
@@ -104,9 +104,10 @@ export function MoodHeatmapBody({
|
||||
* painted heatmap takes: the reserved grid box, the legend line, the day
|
||||
* caption and the data-table toggle. `days` is the window when it is already
|
||||
* known; without it the shape assumes a window short enough to reach the cell
|
||||
* ceiling, which every window under a quarter year does on any width.
|
||||
* ceiling on every width down to 360 px (eight weeks), the height most
|
||||
* calendars settle at.
|
||||
*/
|
||||
export function MoodHeatmapSkeleton({ days = 84 }: { days?: number }) {
|
||||
export function MoodHeatmapSkeleton({ days = 56 }: { days?: number }) {
|
||||
const timeZone = useDisplayTimezone();
|
||||
const coarse = useCoarsePointer();
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user