mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Styles refactoring
This commit is contained in:
parent
90f8db9b45
commit
579fdacacb
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user