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 }) {
<View
style={{
padding: 15,
gap: 15,
paddingTop: 0,
paddingBottom: 25,
width: 500,
maxWidth: 512,
lineHeight: '1.5em',
}}
>
......@@ -61,7 +62,6 @@ export default function DeleteMenu({ modalProps, actions, file }) {
backgroundColor: colors.r4,
alignSelf: 'center',
border: 0,
marginTop: 10,
padding: '10px 30px',
fontSize: 14,
}}
......@@ -74,32 +74,28 @@ export default function DeleteMenu({ modalProps, actions, file }) {
{file.id && (
<>
<Text style={[isRemote && { marginTop: 20 }]}>
{isRemote ? (
<Text>
You can also delete just the local copy. This will remove
all local data and the file will be listed as available for
download.
</Text>
) : (
<Text>
{file.state === 'broken' ? (
<Text>
This is a <strong>hosted file</strong> but it was
created by another user. You can only delete the local
copy.
</Text>
) : (
<Text>
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>
)}
</Text>
{isRemote ? (
<Text>
You can also delete just the local copy. This will remove all
local data and the file will be listed as available for
download.
</Text>
) : (
<Text>
{file.state === 'broken' ? (
<>
This is a <strong>hosted file</strong> but it was created
by another user. You can only delete the local copy.
</>
) : (
<>
This a <strong>local file</strong> which is not stored on
a server.
</>
)}{' '}
Deleting it will remove it and all of its backups permanently.
</Text>
)}
<ButtonWithLoading
primary={!isRemote}
......
---
category: Maintenance
authors: [trevdor]
authors: [trevdor, j-f1]
---
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