From 38233da6d0087278550549f02b916c8faf46837e Mon Sep 17 00:00:00 2001 From: Raphael Beer Date: Thu, 9 Apr 2020 23:01:54 +0200 Subject: [PATCH] review: apply suggestions Co-Authored-By: Alina Beck --- webapp/components/features/FollowList/FollowList.vue | 10 +++++++--- webapp/plugins/vue-directives.js | 8 ++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/webapp/components/features/FollowList/FollowList.vue b/webapp/components/features/FollowList/FollowList.vue index 6199ad95c..a5ed02713 100644 --- a/webapp/components/features/FollowList/FollowList.vue +++ b/webapp/components/features/FollowList/FollowList.vue @@ -143,8 +143,12 @@ export default { color: $text-color-soft; } - .spacer-x-small { - margin: $space-x-small 0; - } +> :nth-child(n):not(:last-child) { + margin-bottom: $space-small; +} + +.user-teaser { + margin-bottom: $space-x-small; +} } diff --git a/webapp/plugins/vue-directives.js b/webapp/plugins/vue-directives.js index 43daed57e..d41f35a0e 100644 --- a/webapp/plugins/vue-directives.js +++ b/webapp/plugins/vue-directives.js @@ -7,12 +7,8 @@ export default ({ app }) => { // Focus the element Vue.nextTick(() => { if (binding.value !== false) { - let target = el - const isInput = target instanceof HTMLInputElement - if (!isInput) { - target = el.querySelector('input') - } - if (target && typeof target.focus === 'function') { + const target = el instanceof HTMLInputElement ? el : el.querySelector('input') + if (target) { target.focus() } }