Skip to content

Commit 2218482

Browse files
github-actions[bot]sjyangkevintirkarthipierrejeambrunLee-W
authored
[v3-1-test] Fix: Adjust PanelButtons spacing and alignment (#56570) (#57062)
* [v3-1-test] Fix Outlet Event Extra Data is Empty in Task Instance Success Listener (#54568) (#57031) Co-authored-by: Kevin Yang <85313829+sjyangkevin@users.noreply.github.com> * [v3-1-test] Fix Extra Links translation key. (#57030) (#57040) (cherry picked from commit 8d71c07) Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com> * [v3-1-test] Fix dags list not rendering (#57037) (#57046) (cherry picked from commit 8668fe5) Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com> * [v3-1-test] fix(scheduler): load dag_run eagering for execution API validation (#57010) (#57045) Co-authored-by: Wei Lee <weilee.rx@gmail.com> fix(scheduler): load dag_run eagering for execution API validation (#56916)" (#56943) * [v3-1-test] Fix dag list cache invalidation on favouriting a dag (#57039) (#57047) Fix dag list cache invalidation on favouriting a dag (cherry picked from commit 4e46212) Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com> * [v3-1-test] Add new PL translations. (#56359) (#57055) (cherry picked from commit 6583b6d) * Add last missing translation for 3.1.1 (#57057) * [v3-1-test] Close German translation gaps for full UI translation 2025-10-21 (#56980) (#57048) * [v3-1-test] Fix: Adjust PanelButtons spacing and alignment (#56570) * fix: adjust PanelButtons spacing and alignment * Fix PanelButtons layout and button styling * Fix PanelButtons: use bg.subtle and remove unnecessary _hover (cherry picked from commit 4c35cd2) Co-authored-by: anshuksi282-ksolves <anshu.singh@ksolves.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Kevin Yang <85313829+sjyangkevin@users.noreply.github.com> Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com> Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com> Co-authored-by: Wei Lee <weilee.rx@gmail.com> Co-authored-by: Jarek Potiuk <jarek@potiuk.com> Co-authored-by: anshuksi282-ksolves <anshu.singh@ksolves.com>
1 parent e3aa919 commit 2218482

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

airflow-core/src/airflow/ui/src/layouts/Details/PanelButtons.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,13 @@ export const PanelButtons = ({
208208
);
209209

210210
return (
211-
<Box position="absolute" ref={containerRef} top={1} width="100%" zIndex={1}>
212-
<Flex justifyContent="space-between">
211+
<Box position="absolute" px={2} ref={containerRef} top={1} width="100%" zIndex={1}>
212+
<Flex justifyContent="space-between" pl={2}>
213213
<ButtonGroup attached size="sm" variant="outline">
214214
<IconButton
215215
aria-label={translate("dag:panel.buttons.showGridShortcut")}
216+
bg={dagView === "grid" ? "brand.500" : "bg.subtle"}
217+
color={dagView === "grid" ? "white" : "fg.default"}
216218
colorPalette="brand"
217219
onClick={() => {
218220
setDagView("grid");
@@ -221,12 +223,13 @@ export const PanelButtons = ({
221223
}
222224
}}
223225
title={translate("dag:panel.buttons.showGridShortcut")}
224-
variant={dagView === "grid" ? "solid" : "outline"}
225226
>
226227
<FiGrid />
227228
</IconButton>
228229
<IconButton
229230
aria-label={translate("dag:panel.buttons.showGraphShortcut")}
231+
bg={dagView === "graph" ? "brand.500" : "bg.subtle"}
232+
color={dagView === "graph" ? "white" : "fg.default"}
230233
colorPalette="brand"
231234
onClick={() => {
232235
setDagView("graph");
@@ -235,17 +238,16 @@ export const PanelButtons = ({
235238
}
236239
}}
237240
title={translate("dag:panel.buttons.showGraphShortcut")}
238-
variant={dagView === "graph" ? "solid" : "outline"}
239241
>
240242
<MdOutlineAccountTree />
241243
</IconButton>
242244
</ButtonGroup>
243-
<Flex gap={1}>
245+
<Flex alignItems="center" gap={1} justifyContent="space-between" pl={2} pr={6}>
244246
<ToggleGroups />
245247
{/* eslint-disable-next-line jsx-a11y/no-autofocus */}
246248
<Popover.Root autoFocus={false} positioning={{ placement: "bottom-end" }}>
247249
<Popover.Trigger asChild>
248-
<Button size="sm" variant="outline">
250+
<Button bg="bg.subtle" color="fg.default" size="sm" variant="outline">
249251
{translate("dag:panel.buttons.options")}
250252
<FiChevronDown size={8} />
251253
</Button>

0 commit comments

Comments
 (0)