mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
Size the source-priority skeleton to every metric line
The loading state now reserves one collapsed line per metric, the upper bound of the loaded list, so the action row does not move down when the ladders arrive.
This commit is contained in:
1 parent
d99306275c
commit
313acdf304
1 file changed
+4
-2
@@ -727,8 +727,10 @@ function SourcesSkeletonList() {
|
||||
<Skeleton className="h-14 w-full rounded-md" />
|
||||
<Skeleton className="h-14 w-full rounded-md" />
|
||||
</div>
|
||||
{[0, 1, 2, 3].map((i) => (
|
||||
<Skeleton key={i} className="h-11 w-full rounded-md" />
|
||||
{/* One collapsed line per remaining metric: the upper bound, so the
|
||||
action row below never jumps down when the ladders arrive. */}
|
||||
{SOURCE_PRIORITY_METRIC_KEYS.slice(1).map((metric) => (
|
||||
<Skeleton key={metric} className="h-11 w-full rounded-md" />
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user