Skip to content
Snippets Groups Projects
Unverified Commit bb3ed4ce authored by Jed Fox's avatar Jed Fox Committed by GitHub
Browse files

Fix “delete file” modal layout (#1170)

parent fddcdec8
No related branches found
No related tags found
No related merge requests found
...@@ -39,9 +39,10 @@ export default function DeleteMenu({ modalProps, actions, file }) { ...@@ -39,9 +39,10 @@ export default function DeleteMenu({ modalProps, actions, file }) {
<View <View
style={{ style={{
padding: 15, padding: 15,
gap: 15,
paddingTop: 0, paddingTop: 0,
paddingBottom: 25, paddingBottom: 25,
width: 500, maxWidth: 512,
lineHeight: '1.5em', lineHeight: '1.5em',
}} }}
> >
...@@ -61,7 +62,6 @@ export default function DeleteMenu({ modalProps, actions, file }) { ...@@ -61,7 +62,6 @@ export default function DeleteMenu({ modalProps, actions, file }) {
backgroundColor: colors.r4, backgroundColor: colors.r4,
alignSelf: 'center', alignSelf: 'center',
border: 0, border: 0,
marginTop: 10,
padding: '10px 30px', padding: '10px 30px',
fontSize: 14, fontSize: 14,
}} }}
...@@ -74,32 +74,28 @@ export default function DeleteMenu({ modalProps, actions, file }) { ...@@ -74,32 +74,28 @@ export default function DeleteMenu({ modalProps, actions, file }) {
{file.id && ( {file.id && (
<> <>
<Text style={[isRemote && { marginTop: 20 }]}> {isRemote ? (
{isRemote ? ( <Text>
<Text> You can also delete just the local copy. This will remove all
You can also delete just the local copy. This will remove local data and the file will be listed as available for
all local data and the file will be listed as available for download.
download. </Text>
</Text> ) : (
) : ( <Text>
<Text> {file.state === 'broken' ? (
{file.state === 'broken' ? ( <>
<Text> This is a <strong>hosted file</strong> but it was created
This is a <strong>hosted file</strong> but it was by another user. You can only delete the local copy.
created by another user. You can only delete the local </>
copy. ) : (
</Text> <>
) : ( This a <strong>local file</strong> which is not stored on
<Text> a server.
This a <strong>local file</strong> which is not stored </>
on a server. )}{' '}
</Text> Deleting it will remove it and all of its backups permanently.
)}{' '} </Text>
Deleting it will remove it and all of its backups )}
permanently.
</Text>
)}
</Text>
<ButtonWithLoading <ButtonWithLoading
primary={!isRemote} primary={!isRemote}
......
--- ---
category: Maintenance category: Maintenance
authors: [trevdor] authors: [trevdor, j-f1]
--- ---
Upgrade to react-router v6 and adopt v6 routing conventions. Upgrade to react-router v6 and adopt v6 routing conventions.
---
category: Bugfix
authors: [j-f1]
---
Fix “delete file” modal layout
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment