From 6e6b12519ab60a925a1e7c212a8b478cb5cdd958 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 14 Feb 2020 01:24:05 +0900 Subject: [PATCH] Refactor --- src/client/components/ui/input.vue | 4 ++++ src/client/components/ui/select.vue | 4 ++++ src/client/components/ui/textarea.vue | 4 ++++ src/client/pages/instance/announcements.vue | 2 +- src/client/pages/instance/emojis.vue | 2 +- src/client/pages/instance/index.vue | 6 +++--- src/client/pages/instance/users.vue | 2 +- src/client/pages/my-antennas/index.antenna.vue | 2 +- src/client/pages/settings/general.vue | 2 +- src/client/pages/settings/import-export.vue | 4 ++-- src/client/pages/settings/reaction.vue | 2 +- 11 files changed, 23 insertions(+), 11 deletions(-) diff --git a/src/client/components/ui/input.vue b/src/client/components/ui/input.vue index cd295b68d8..c99e652fc0 100644 --- a/src/client/components/ui/input.vue +++ b/src/client/components/ui/input.vue @@ -239,6 +239,10 @@ export default Vue.extend({ position: relative; margin: 32px 0; + &:not(.inline):first-child { + margin-top: 8px; + } + > .icon { position: absolute; top: 0; diff --git a/src/client/components/ui/select.vue b/src/client/components/ui/select.vue index 8bad7c5d65..772cd1167b 100644 --- a/src/client/components/ui/select.vue +++ b/src/client/components/ui/select.vue @@ -77,6 +77,10 @@ export default Vue.extend({ position: relative; margin: 32px 0; + &:not(.inline):first-child { + margin-top: 8px; + } + > .icon { position: absolute; top: 0; diff --git a/src/client/components/ui/textarea.vue b/src/client/components/ui/textarea.vue index 7b42b78a73..fab307a202 100644 --- a/src/client/components/ui/textarea.vue +++ b/src/client/components/ui/textarea.vue @@ -85,6 +85,10 @@ export default Vue.extend({ margin: 42px 0 32px 0; position: relative; + &:first-child { + margin-top: 16px; + } + &:last-child { margin-bottom: 0; } diff --git a/src/client/pages/instance/announcements.vue b/src/client/pages/instance/announcements.vue index f922ee749a..2889cf8cce 100644 --- a/src/client/pages/instance/announcements.vue +++ b/src/client/pages/instance/announcements.vue @@ -5,7 +5,7 @@ {{ $t('add') }}
- + {{ $t('title') }} diff --git a/src/client/pages/instance/emojis.vue b/src/client/pages/instance/emojis.vue index 66b52492b9..84974f45c4 100644 --- a/src/client/pages/instance/emojis.vue +++ b/src/client/pages/instance/emojis.vue @@ -36,7 +36,7 @@
{{ $t('customEmojisOfRemote') }}
- {{ $t('host') }} + {{ $t('host') }} diff --git a/src/client/pages/settings/reaction.vue b/src/client/pages/settings/reaction.vue index 134cd8536c..250769ec9e 100644 --- a/src/client/pages/settings/reaction.vue +++ b/src/client/pages/settings/reaction.vue @@ -2,7 +2,7 @@
{{ $t('reaction') }}
- {{ $t('reaction') }} + {{ $t('reaction') }}