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


##########
airflow-core/src/airflow/ui/src/layouts/Details/PanelButtons.tsx:
##########
@@ -75,16 +77,25 @@ const getOptions = (translate: (key: string) => string) =>
     ],
   });
 
-const displayRunOptions = createListCollection({
-  items: [
-    { label: "5", value: "5" },
-    { label: "10", value: "10" },
-    { label: "25", value: "25" },
-    { label: "50", value: "50" },
-    { label: "100", value: "100" },
-    { label: "365", value: "365" },
-  ],
-});
+const getWidthBasedConfig = (width: number, showGantt: boolean) => {
+  const breakpoints = showGantt
+    ? [
+        { limit: 100, min: 1600, options: ["5", "10", "25", "50", "100"] }, // 
xl: extra large screens
+        { limit: 25, min: 1024, options: ["5", "10", "25"] }, // lg: large 
screens
+        { limit: 10, min: 768, options: ["5", "10"] }, // md: medium screens
+        { limit: 5, min: 0, options: ["5"] }, // sm: small screens and below
+      ]
+    : [{ limit: 5, min: 0, options: ["5", "10", "25", "50", "100", "365"] }];

Review Comment:
   While we're changing this. Let's just get rid of 100 and 365 options



-- 
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