projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve news style
[vchess.git]
/
client
/
src
/
views
/
News.vue
diff --git
a/client/src/views/News.vue
b/client/src/views/News.vue
index
66a5249
..
a4ce579
100644
(file)
--- 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) }}
: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"] }}
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()"
button#loadMoreBtn(
v-if="hasMore"
@click="loadMore()"
@@
-183,7
+183,7
@@
export default {
};
</script>
};
</script>
-<style lang="sass"
scoped
>
+<style lang="sass">
[type="checkbox"].modal+div .card
max-width: 767px
max-height: 100%
[type="checkbox"].modal+div .card
max-width: 767px
max-height: 100%
@@
-211,8
+211,16
@@
span.ndt
.news
padding-top: 10px
.news
padding-top: 10px
- & >
div
+ & >
.dev-buttons
display: inline-block
display: inline-block
+ & > .news-content
+ margin: var(--universal-margin)
+ & > p
+ margin: 10px 0
+ & > br
+ display: block
+ margin-top: 10px
+ content: " "
.margintop
margin-top: 25px
.margintop
margin-top: 25px