From: Benjamin Auder Date: Thu, 19 Mar 2020 13:34:27 +0000 (+0100) Subject: Improve news style X-Git-Url: https://git.auder.net/doc/%3C?a=commitdiff_plain;h=622e0fa8aebe0ea8246c2f89ee27cba6b7f1beba;p=vchess.git Improve news style --- 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