From a879607479c701733476659de1742d5f7d87eede Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 27 May 2023 11:35:26 +0900 Subject: [PATCH 1/4] refactor --- .../src/components/MkEmojiPickerDialog.vue | 16 +- .../frontend/src/components/MkTextarea.vue | 167 +++++++++--------- .../frontend/src/components/form/link.vue | 120 ++++++------- .../src/components/page/page.section.vue | 38 ++-- .../src/components/page/page.text.vue | 20 +-- .../frontend/src/components/page/page.vue | 18 +- packages/frontend/src/pages/admin/relays.vue | 30 +--- .../frontend/src/pages/flash/flash-index.vue | 32 +--- .../frontend/src/pages/my-lists/index.vue | 48 ++--- 9 files changed, 206 insertions(+), 283 deletions(-) diff --git a/packages/frontend/src/components/MkEmojiPickerDialog.vue b/packages/frontend/src/components/MkEmojiPickerDialog.vue index d60921803..cfb65e3b6 100644 --- a/packages/frontend/src/components/MkEmojiPickerDialog.vue +++ b/packages/frontend/src/components/MkEmojiPickerDialog.vue @@ -14,8 +14,8 @@ > - diff --git a/packages/frontend/src/components/MkTextarea.vue b/packages/frontend/src/components/MkTextarea.vue index e8f10ab04..f5e6c71b7 100644 --- a/packages/frontend/src/components/MkTextarea.vue +++ b/packages/frontend/src/components/MkTextarea.vue @@ -1,12 +1,12 @@ @@ -111,87 +111,82 @@ onMounted(() => { }); - diff --git a/packages/frontend/src/components/form/link.vue b/packages/frontend/src/components/form/link.vue index a1775c0bd..1424332da 100644 --- a/packages/frontend/src/components/form/link.vue +++ b/packages/frontend/src/components/form/link.vue @@ -1,19 +1,19 @@
- + {{ i18n.ts.controlPanel }} - + {{ i18n.ts.settings }}
From 3a924f3dc62048e5edea9288de195f0b60760cee Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 27 May 2023 11:44:04 +0900 Subject: [PATCH 3/4] refactor --- .../frontend/src/components/MkImageViewer.vue | 78 ------------------- .../frontend/src/components/form/suspense.vue | 41 ++++------ 2 files changed, 13 insertions(+), 106 deletions(-) delete mode 100644 packages/frontend/src/components/MkImageViewer.vue diff --git a/packages/frontend/src/components/MkImageViewer.vue b/packages/frontend/src/components/MkImageViewer.vue deleted file mode 100644 index e3b2ebe65..000000000 --- a/packages/frontend/src/components/MkImageViewer.vue +++ /dev/null @@ -1,78 +0,0 @@ - - - - - diff --git a/packages/frontend/src/components/form/suspense.vue b/packages/frontend/src/components/form/suspense.vue index 9b39858ca..b3d8c22b2 100644 --- a/packages/frontend/src/components/form/suspense.vue +++ b/packages/frontend/src/components/form/suspense.vue @@ -1,18 +1,16 @@ - From fb54c58a661bee64365b7ec0c52d456062aaa200 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 27 May 2023 12:09:19 +0900 Subject: [PATCH 4/4] :art: --- packages/frontend/src/ui/deck.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/ui/deck.vue b/packages/frontend/src/ui/deck.vue index 69637b655..126aa807a 100644 --- a/packages/frontend/src/ui/deck.vue +++ b/packages/frontend/src/ui/deck.vue @@ -328,12 +328,12 @@ async function deleteProfile() { flex-direction: column; scroll-snap-align: start; flex-shrink: 0; - margin-top: var(--columnGap); - margin-bottom: var(--columnGap); - margin-right: var(--columnGap); + padding-top: var(--columnGap); + padding-bottom: var(--columnGap); + padding-right: var(--columnGap); &:first-of-type { - margin-left: var(--columnGap); + padding-left: var(--columnGap); } > .column:not(:last-of-type) {