fix: wrap code highlight theme selector in a view for layout consistency

This commit is contained in:
lawvs 2025-06-08 03:22:19 +08:00
parent 3be9af23d7
commit 86b2d083fb
1 changed files with 12 additions and 11 deletions

View File

@ -106,17 +106,18 @@ export const AppearanceScreen = () => {
<GroupedInsetListSectionHeader label="Content" />
<GroupedInsetListCard>
<GroupedInsetListCell label={t("appearance.code_highlight_theme.label")}>
<Select
wrapperClassName="w-[120px]"
options={themeNames.map((theme) => ({
label: theme,
value: theme,
}))}
value={colorScheme === "dark" ? codeThemeDark : codeThemeLight}
onValueChange={(val) => {
setUISetting(`codeHighlightTheme${colorScheme === "dark" ? "Dark" : "Light"}`, val)
}}
/>
<View className="w-[120px]">
<Select
options={themeNames.map((theme) => ({
label: theme,
value: theme,
}))}
value={colorScheme === "dark" ? codeThemeDark : codeThemeLight}
onValueChange={(val) => {
setUISetting(`codeHighlightTheme${colorScheme === "dark" ? "Dark" : "Light"}`, val)
}}
/>
</View>
</GroupedInsetListCell>
<GroupedInsetListCell