From 3912b21ea2f24e2e25682060b7166d1511442e6e Mon Sep 17 00:00:00 2001 From: roschaefer Date: Fri, 4 Oct 2019 00:55:14 +0200 Subject: [PATCH] refactor: use named slot for additional text @mattwr18 I can see odd behaviour of the EDITED marker on mobile: The text would just overlap. The current behaviour has its flaws, e.g. if you have a long text it won't wrap but overflow the comment card. But putting the additional text into a named slot is certainly better than adding some nodes next to the `` component. --- webapp/components/Comment/Comment.vue | 48 ++++++++++----------------- webapp/components/User/User.vue | 4 +-- webapp/pages/post/_id/_slug/index.vue | 38 ++++++++------------- 3 files changed, 34 insertions(+), 56 deletions(-) diff --git a/webapp/components/Comment/Comment.vue b/webapp/components/Comment/Comment.vue index 6fc076c7b..534c45e6b 100644 --- a/webapp/components/Comment/Comment.vue +++ b/webapp/components/Comment/Comment.vue @@ -12,33 +12,25 @@
- - - - - - - {{ this.$t('comment.edited') }} + + + + + +
diff --git a/webapp/components/User/User.vue b/webapp/components/User/User.vue index eb7092bcc..3afef5c11 100644 --- a/webapp/components/User/User.vue +++ b/webapp/components/User/User.vue @@ -11,17 +11,17 @@
- + {{ userName | truncate(18) }} +
- {{ userSlug }} diff --git a/webapp/pages/post/_id/_slug/index.vue b/webapp/pages/post/_id/_slug/index.vue index 0c45c0ca3..1357f9653 100644 --- a/webapp/pages/post/_id/_slug/index.vue +++ b/webapp/pages/post/_id/_slug/index.vue @@ -6,30 +6,20 @@ :class="{ 'post-card': true, 'disabled-content': post.disabled }" > - - - - - - - {{ this.$t('post.edited') }} - - - - - - - - - - - + + + + + + {{ post.title }}