From 600373b41cea22a9edaa8169564ccd207daa1002 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 cd295b68d..c99e652fc 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 8bad7c5d6..772cd1167 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 7b42b78a7..fab307a20 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 f922ee749..2889cf8cc 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 66b52492b..84974f45c 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 134cd8536..250769ec9 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') }}