From c01c705f5a450a4929f7a343f06b9d953a470b28 Mon Sep 17 00:00:00 2001 From: Water Boiled Pizza <31476555+WaterBoiledPizza@users.noreply.github.com> Date: Mon, 23 Jan 2023 15:10:36 +0800 Subject: [PATCH 1/7] Formats and requirements for emote upload --- .../scss/emote-upload/emote-upload.scss | 17 +++++- src/views/emote-upload/EmoteUpload.vue | 61 +++++++++++-------- 2 files changed, 50 insertions(+), 28 deletions(-) diff --git a/src/assets/scss/emote-upload/emote-upload.scss b/src/assets/scss/emote-upload/emote-upload.scss index 5f2e07e4..2f65810d 100644 --- a/src/assets/scss/emote-upload/emote-upload.scss +++ b/src/assets/scss/emote-upload/emote-upload.scss @@ -57,7 +57,8 @@ justify-content: center; align-items: center; padding: 0.5em 1em; - margin-right: 1em; + margin-left: 0em; + margin-right: auto; border-radius: 0.4em; > span { @@ -100,13 +101,25 @@ > .formats-viewer { position: absolute; - width: 16em; + width: 20em; display: flex; flex-direction: column; border-radius: 0.4em; padding: 0.5em; + padding-left: 1em; + padding-right: 1em; backdrop-filter: blur(4px); + .requirements { + padding-top: 0.25rem; + font-size: 0.8rem; + + > h3 { + font-size: 1rem; + margin-bottom: -10px; + } + } + .format { display: flex; flex-direction: row; diff --git a/src/views/emote-upload/EmoteUpload.vue b/src/views/emote-upload/EmoteUpload.vue index 1c8ea248..72f9c6fe 100644 --- a/src/views/emote-upload/EmoteUpload.vue +++ b/src/views/emote-upload/EmoteUpload.vue @@ -38,21 +38,38 @@ @dragleave="dragOver = false" >

{{ t("emote.upload.image_upload") }}

- - {{ t("emote.upload.accepted_formats") }} - - - + + + + + +
+ +
+ + {{ parentEmote.name }} + +
+
+
+ +
+
+
{{ t("emote.upload.filetype") }}
{{ t("emote.upload.animation") }}
{{ t("emote.upload.transparency") }}
- - - -
{{ f.label }}
@@ -72,23 +89,15 @@
-
- - -
- - -
- -
- - {{ parentEmote.name }} - +
+

Requirements:

+
- under 7 MB
- smaller than 1000 x 1000 pixels
- less than 1000 frames +
+ - no more than 50 fps
- +
+ @@ -161,11 +170,11 @@ if (parentID.value) { } // Formats viewer -const formatsViewerOpen = ref(false); +const formatsViewerOpen = ref(true); const formatsViewer = ref(null); onMounted(() => { - onClickOutside(formatsViewer, () => (formatsViewerOpen.value = false)); + onClickOutside(formatsViewer, () => (formatsViewerOpen.value = true)); }); // Form From c034d8993e453444f9371b837b2d1567063c7b5e Mon Sep 17 00:00:00 2001 From: WaterBoiledPizza Date: Mon, 23 Jan 2023 22:32:47 +0800 Subject: [PATCH 2/7] Follow up regarding changes to emote upload page --- .../scss/emote-upload/emote-upload.scss | 5 ++--- src/views/emote-upload/EmoteUpload.vue | 20 ++++++------------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/src/assets/scss/emote-upload/emote-upload.scss b/src/assets/scss/emote-upload/emote-upload.scss index 2f65810d..c1886e1e 100644 --- a/src/assets/scss/emote-upload/emote-upload.scss +++ b/src/assets/scss/emote-upload/emote-upload.scss @@ -57,7 +57,7 @@ justify-content: center; align-items: center; padding: 0.5em 1em; - margin-left: 0em; + margin-left: auto; margin-right: auto; border-radius: 0.4em; @@ -116,7 +116,6 @@ > h3 { font-size: 1rem; - margin-bottom: -10px; } } @@ -211,7 +210,7 @@ } } - @media screen and (max-width: 800px) { + @media screen and (max-width: 1200px) { flex-direction: column; align-items: center; > .image-upload { diff --git a/src/views/emote-upload/EmoteUpload.vue b/src/views/emote-upload/EmoteUpload.vue index 72f9c6fe..8a542ce1 100644 --- a/src/views/emote-upload/EmoteUpload.vue +++ b/src/views/emote-upload/EmoteUpload.vue @@ -65,7 +65,7 @@ @dragleave="dragOver = false" > -
+
{{ t("emote.upload.filetype") }}
{{ t("emote.upload.animation") }}
@@ -91,9 +91,10 @@

Requirements:

-
- under 7 MB
- smaller than 1000 x 1000 pixels
- less than 1000 frames -
- - no more than 50 fps +

- under 7 MB

+

- smaller than 1000 x 1000 pixels

+

- less than 1000 frames

+

- no more than 50 fps

@@ -123,11 +124,10 @@