Fix style issues after Stack migration (#6086)

* Fix style issues after Stack migration

* Add release notes
This commit is contained in:
Julian Dominguez-Schatz
2025-11-08 15:50:03 -05:00
committed by GitHub
parent 31455d475c
commit dedf0cd6f8
7 changed files with 24 additions and 7 deletions

View File

@@ -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,
}}

View File

@@ -71,6 +71,7 @@ export const BudgetAutomation = ({
return (
<SpaceBetween
direction="vertical"
align="stretch"
gap={inline ? 0 : 5}
style={{ ...style, minHeight: 'fit-content' }}
>

View File

@@ -124,6 +124,7 @@ export function BudgetAutomationEditor({
return (
<SpaceBetween
direction="vertical"
align="stretch"
gap={10}
style={{
flex: 1,

View File

@@ -33,7 +33,7 @@ export const PercentageAutomation = ({
return (
<>
<SpaceBetween gap={50} style={{ marginTop: 10, alignItems: 'center' }}>
<SpaceBetween gap={50} style={{ marginTop: 10 }}>
<FormField style={{ flex: 1 }}>
<FormLabel title={t('Category')} htmlFor="category-field" />
<CategoryAutocomplete
@@ -71,7 +71,7 @@ export const PercentageAutomation = ({
/>
</FormField>
</SpaceBetween>
<SpaceBetween gap={50} style={{ marginTop: 10, alignItems: 'center' }}>
<SpaceBetween gap={50}>
<FormField style={{ flex: 1 }}>
<FormLabel title={t('Percentage of')} htmlFor="previous-field" />
<Select

View File

@@ -28,7 +28,7 @@ export const ScheduleAutomation = ({
const { t } = useTranslation();
return schedules.length ? (
<SpaceBetween gap={50} style={{ marginTop: 10, alignItems: 'center' }}>
<SpaceBetween gap={50} style={{ marginTop: 10 }}>
<FormField style={{ flex: 1 }}>
<FormLabel title={t('Schedule')} htmlFor="schedule-field" />
<Select

View File

@@ -87,6 +87,8 @@ function BudgetAutomationList({
<SpaceBetween
direction="vertical"
gap={20}
align="stretch"
wrap={false}
style={{
overflowY: 'scroll',
...style,
@@ -222,7 +224,12 @@ export function BudgetAutomationsModal({ categoryId }: { categoryId: string }) {
}}
>
{({ state: { close } }) => (
<SpaceBetween direction="vertical" style={{ height: '100%' }}>
<SpaceBetween
direction="vertical"
wrap={false}
align="stretch"
style={{ height: '100%' }}
>
<ModalHeader
title={t('Budget automations: {{category}}', {
category: currentCategory?.name,
@@ -244,7 +251,7 @@ export function BudgetAutomationsModal({ categoryId }: { categoryId: string }) {
<AnimatedLoading style={{ width: 20, height: 20 }} />
</View>
) : (
<SpaceBetween direction="vertical">
<SpaceBetween align="stretch" direction="vertical">
{needsMigration && (
<BudgetAutomationMigrationWarning categoryId={categoryId} />
)}
@@ -266,7 +273,7 @@ export function BudgetAutomationsModal({ categoryId }: { categoryId: string }) {
style={{
marginTop: 20,
justifyContent: 'flex-end',
alignItems: 'center',
flexShrink: 0,
}}
>
{!needsMigration && (

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [jfdoming]
---
Fix style issues after Stack migration