diff --git a/packages/component-library/src/SpaceBetween.tsx b/packages/component-library/src/SpaceBetween.tsx index a88081c329..af7521bdd8 100644 --- a/packages/component-library/src/SpaceBetween.tsx +++ b/packages/component-library/src/SpaceBetween.tsx @@ -7,6 +7,7 @@ type SpaceBetweenProps = { direction?: 'horizontal' | 'vertical'; gap?: number; wrap?: boolean; + align?: 'start' | 'center' | 'end' | 'stretch'; style?: CSSProperties; children: ReactNode; }; @@ -15,6 +16,7 @@ export const SpaceBetween = ({ direction = 'horizontal', gap = 15, wrap = true, + align = 'center', style, children, ...props @@ -24,7 +26,7 @@ export const SpaceBetween = ({ style={{ flexWrap: wrap ? 'wrap' : 'nowrap', flexDirection: direction === 'horizontal' ? 'row' : 'column', - alignItems: 'center', + alignItems: align, gap, ...style, }} diff --git a/packages/desktop-client/src/components/budget/goals/BudgetAutomation.tsx b/packages/desktop-client/src/components/budget/goals/BudgetAutomation.tsx index a8606d87ac..2a40adeb64 100644 --- a/packages/desktop-client/src/components/budget/goals/BudgetAutomation.tsx +++ b/packages/desktop-client/src/components/budget/goals/BudgetAutomation.tsx @@ -71,6 +71,7 @@ export const BudgetAutomation = ({ return ( diff --git a/packages/desktop-client/src/components/budget/goals/BudgetAutomationEditor.tsx b/packages/desktop-client/src/components/budget/goals/BudgetAutomationEditor.tsx index 67325a4c32..10a315e96e 100644 --- a/packages/desktop-client/src/components/budget/goals/BudgetAutomationEditor.tsx +++ b/packages/desktop-client/src/components/budget/goals/BudgetAutomationEditor.tsx @@ -124,6 +124,7 @@ export function BudgetAutomationEditor({ return ( - + - + {({ state: { close } }) => ( - + ) : ( - + {needsMigration && ( )} @@ -266,7 +273,7 @@ export function BudgetAutomationsModal({ categoryId }: { categoryId: string }) { style={{ marginTop: 20, justifyContent: 'flex-end', - alignItems: 'center', + flexShrink: 0, }} > {!needsMigration && ( diff --git a/upcoming-release-notes/6086.md b/upcoming-release-notes/6086.md new file mode 100644 index 0000000000..176620d653 --- /dev/null +++ b/upcoming-release-notes/6086.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [jfdoming] +--- + +Fix style issues after Stack migration