fix: wrap code highlight theme selector in a view for layout consistency
This commit is contained in:
parent
3be9af23d7
commit
86b2d083fb
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue