From 622e0fa8aebe0ea8246c2f89ee27cba6b7f1beba Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Thu, 19 Mar 2020 14:34:27 +0100 Subject: [PATCH] Improve news style --- client/src/views/News.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/src/views/News.vue b/client/src/views/News.vue index 66a52491..e7fabe3a 100644 --- a/client/src/views/News.vue +++ b/client/src/views/News.vue @@ -26,10 +26,10 @@ main :class="{margintop:idx>0}" ) span.ndt {{ formatDatetime(n.added) }} - div(v-if="devs.includes(st.user.id)") + .dev-buttons(v-if="devs.includes(st.user.id)") button(@click="editNews(n)") {{ st.tr["Edit"] }} button(@click="deleteNews(n)") {{ st.tr["Delete"] }} - p(v-html="parseHtml(n.content)") + .news-content(v-html="parseHtml(n.content)") button#loadMoreBtn( v-if="hasMore" @click="loadMore()" @@ -211,8 +211,10 @@ span.ndt .news padding-top: 10px - & > div + & > .dev-buttons display: inline-block + & > .news-content + margin: 0 .margintop margin-top: 25px -- 2.44.0