1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Styles refactoring

This commit is contained in:
Henry Heino 2024-12-19 18:31:44 -08:00
parent 90f8db9b45
commit 579fdacacb

View File

@ -25,12 +25,10 @@ type ExtendedSelf = (typeof window.self) & {
};
declare const self: ExtendedSelf;
const styles = StyleSheet.create({
const pathSelectorStyles = StyleSheet.create({
container: {
paddingTop: 0,
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
flexDirection: 'row',
alignItems: 'center',
},
mainButton: {
flexGrow: 1,
@ -97,13 +95,13 @@ const FileSystemPathSelector: FunctionComponent<Props> = props => {
/>
);
return <View style={[styleSheet.settingContainer, styles.container]}>
return <View style={pathSelectorStyles.container}>
<TouchableRipple
onPress={selectDirectoryButtonPress}
style={styles.mainButton}
style={pathSelectorStyles.mainButton}
role='button'
>
<View style={styles.buttonContent}>
<View style={pathSelectorStyles.buttonContent}>
<Text key="label" style={styleSheet.settingText}>
{props.settingMetadata.label()}
</Text>