Enhance ThemeSettings and UI components by adding maxWidth styling for better responsiveness. This change ensures that buttons and columns adapt to the full width of their containers.

This commit is contained in:
Matiss Janis Aboltins
2026-03-10 22:46:11 +00:00
parent 0f6d1be4c0
commit c2f6ecf3f4
2 changed files with 6 additions and 1 deletions

View File

@@ -229,6 +229,7 @@ export function ThemeSettings() {
'&[data-hovered]': {
backgroundColor: themeStyle.buttonNormalBackgroundHover,
},
maxWidth: '100%',
})}
/>
</Column>
@@ -248,6 +249,7 @@ export function ThemeSettings() {
backgroundColor:
themeStyle.buttonNormalBackgroundHover,
},
maxWidth: '100%',
})}
/>
</Column>
@@ -265,6 +267,7 @@ export function ThemeSettings() {
backgroundColor:
themeStyle.buttonNormalBackgroundHover,
},
maxWidth: '100%',
})}
/>
</Column>

View File

@@ -118,7 +118,9 @@ export function Column({
}}
>
<Text style={{ fontWeight: 500 }}>{title}</Text>
<View style={{ alignItems: 'flex-start', gap: '1em' }}>{children}</View>
<View style={{ alignItems: 'flex-start', gap: '1em', width: '100%' }}>
{children}
</View>
</View>
);
}