From c025aa2539d44af79ce74b301f0d0135e94ef0b7 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sat, 5 Mar 2022 10:11:19 +0100 Subject: [PATCH] chore(front/file-uploader): remove unnecessary css, container, update col-grow class names --- src/assets/views/file-uploader.svelte | 255 ++++++++++++-------------- 1 file changed, 118 insertions(+), 137 deletions(-) diff --git a/src/assets/views/file-uploader.svelte b/src/assets/views/file-uploader.svelte index e94676e..ca1c34e 100644 --- a/src/assets/views/file-uploader.svelte +++ b/src/assets/views/file-uploader.svelte @@ -71,23 +71,6 @@ } } - .actions { - display: flex; - flex-direction: row; - - :global(button) { - padding: 8px; - } - - :global(button .icon) { - margin: 0 !important; - } - - :global(button .tip) { - display: none; - } - } - .new-files { h3 { text-align: center; @@ -116,130 +99,128 @@

Upload files

-
-
-

- - Upload files -

-

You are responsible for the files that you upload.

+
+

+ + Upload files +

+

You are responsible for the files that you upload.

-
-
- +
+ + - - {#if !neverExpire} - + + {#if !neverExpire} + + {/if} + + {#if !selectedFiles || selectedFiles.length <= 1} + + {#if !autogenUrl} + {/if} - - {#if !selectedFiles || selectedFiles.length <= 1} - - {#if !autogenUrl} - - {/if} - {:else} - - {/if} - -
- - {#if uploading} - - {/if} - - {#if finishedFileUploads.length > 0} -
-
-

- - Newly uploaded files -

- - {#each finishedFileUploads as fileUpload} - - {/each} -
- {/if} - - {#if $locals.flash.url} - - {/if} -
- - -
-

- - File list -

- - - - - - - - - - - - - - - - {#each $locals.files as file} - - - - - - - {:else} - - - - {/each} - -
#NameSizeExpires inActions
{file.id} -
{file.real_name}
-
{(file.size / (1024 * 1024)).toFixed(2)}MB - {#if file.expires_at} - - {:else} - Never - {/if} - - {#if file.shouldBeDeleted} - Pending deletion - {:else} - - -
- {/if} -
You haven't uploaded any file yet.
+ + {/if} + +
- - - + {#if uploading} + + {/if} + + {#if finishedFileUploads.length > 0} +
+
+

+ + Newly uploaded files +

+ + {#each finishedFileUploads as fileUpload} + + {/each} +
+ {/if} + + {#if $locals.flash.url} + + {/if} + + + +
+

+ + File list +

+ + + + + + + + + + + + + + + + {#each $locals.files as file} + + + + + + + + {:else} + + + + {/each} + +
#NameSizeExpires inActions
{file.id} +
{file.real_name}
+
{(file.size / (1024 * 1024)).toFixed(2)}MB + {#if file.expires_at} + + {:else} + Never + {/if} + + {#if file.shouldBeDeleted} + Pending deletion + {:else} + + +
+ {/if} +
You haven't uploaded any file yet.
+ + +