bbovenzi commented on code in PR #64267:
URL: https://github.com/apache/airflow/pull/64267#discussion_r3046602798


##########
airflow-core/src/airflow/ui/src/pages/Dashboard/Stats/DAGImportErrors.tsx:
##########
@@ -37,38 +37,46 @@ export const DAGImportErrors = ({ iconOnly = false }: { 
readonly iconOnly?: bool
   const importErrorsCount = data?.total_entries ?? 0;
 
   if (isLoading) {
-    return <Skeleton height="9" width="225px" />;
+    // Skeleton dimensions match the rendered component sizes to prevent 
layout shift.
+    // iconOnly: 28px × 60px matches StateBadge (height={7} = 28px in Chakra 
spacing scale).
+    // full: 42px × 175px matches the rendered StatsCard dimensions.
+    return iconOnly ? (
+      <Skeleton height="28px" width="60px" />
+    ) : (
+      <Skeleton height="42px" width="175px" />
+    );

Review Comment:
   +1 I like this especially since we want to make the UI more responsive.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to