Skip to content

Commit

Permalink
fix card
Browse files Browse the repository at this point in the history
  • Loading branch information
byeoon committed Oct 24, 2024
1 parent a493e14 commit 474f02c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/ui/settings/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function Card(props: CardProps) {

// TODO: re-position the '...' icon to next to the switch
return (
<RN.View style={[styles.card, { marginTop: props.index !== 0 ? 10 : 0 }]}>
<RN.View style={[styles.card, { marginTop: props.index !== 0 ? 8 : 0 }]}>
<TableRow
style={styles.header}
label={props.headerLabel}
Expand All @@ -88,10 +88,10 @@ export default function Card(props: CardProps) {
pressableState = !pressableState;
props.onToggleChange?.(pressableState)
}}>
{/* TODO: Look into making this respect brand color */}
<FormRadio selected={props.toggleValue} />
</RN.Pressable>)
)}
)
}

/>
<TableRow
Expand Down
2 changes: 1 addition & 1 deletion src/ui/settings/components/PluginCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function PluginCard({ item: plugin, index }: CardWrapper<Plugin>)
return (
<Card
index={index}
headerLabel={`${plugin.manifest.name}\n\n by ${authors.map(i => i.name).join(", ")}`}
headerLabel={`${plugin.manifest.name}\n by ${authors.map(i => i.name).join(", ")}`}
headerIcon={plugin.manifest.vendetta?.icon || "ic_application_command_24px"}
toggleType="switch"
toggleValue={plugin.enabled}
Expand Down

0 comments on commit 474f02c

Please sign in to comment.