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:
Marc-André Bombeck committed 2026-10-08 21:04:09 +02:00
1 parent d99306275c
commit 313acdf304
1 file changed
+4 -2
+4 -2
View File
@@ -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>
);