mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
mobile: change sheet button positions
This commit is contained in:
@@ -112,27 +112,9 @@ export const AddNotebookSheet = ({
|
||||
paddingHorizontal: 12
|
||||
}}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
flexDirection: "row",
|
||||
width: "100%",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center"
|
||||
}}
|
||||
>
|
||||
<Heading size={SIZE.lg}>
|
||||
{notebook ? "Edit Notebook" : "New Notebook"}
|
||||
</Heading>
|
||||
<Button
|
||||
title={notebook ? "Save" : "Add"}
|
||||
type="accent"
|
||||
height={40}
|
||||
style={{
|
||||
paddingHorizontal: 24
|
||||
}}
|
||||
onPress={onSaveChanges}
|
||||
/>
|
||||
</View>
|
||||
<Heading size={SIZE.lg}>
|
||||
{notebook ? "Edit Notebook" : "New Notebook"}
|
||||
</Heading>
|
||||
|
||||
<Seperator />
|
||||
|
||||
@@ -167,6 +149,18 @@ export const AddNotebookSheet = ({
|
||||
returnKeyType="next"
|
||||
defaultValue={notebook ? notebook.description : ""}
|
||||
/>
|
||||
|
||||
<Button
|
||||
title={notebook ? "Save" : "Add"}
|
||||
type="accent"
|
||||
height={45}
|
||||
fontSize={SIZE.md}
|
||||
style={{
|
||||
paddingHorizontal: 24,
|
||||
width: "100%"
|
||||
}}
|
||||
onPress={onSaveChanges}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -591,6 +591,7 @@ export default function ReminderSheet({
|
||||
title="Save"
|
||||
type="accent"
|
||||
height={45}
|
||||
fontSize={SIZE.md}
|
||||
style={{
|
||||
paddingHorizontal: 24,
|
||||
marginTop: 10,
|
||||
|
||||
@@ -269,7 +269,9 @@ export const Pressable = ({
|
||||
alignItems: "center",
|
||||
marginBottom: 0,
|
||||
borderColor: pressed
|
||||
? borderSelectedColor || borderColor
|
||||
? customSelectedColor
|
||||
? getColorLinearShade(customSelectedColor, 0.3, false)
|
||||
: borderSelectedColor || borderColor
|
||||
: borderColor || "transparent",
|
||||
borderWidth: borderWidth
|
||||
},
|
||||
@@ -281,6 +283,7 @@ export const Pressable = ({
|
||||
opacity,
|
||||
primaryColor,
|
||||
noborder,
|
||||
customSelectedColor,
|
||||
borderSelectedColor,
|
||||
borderColor,
|
||||
borderWidth,
|
||||
|
||||
Reference in New Issue
Block a user