X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FNews.vue;h=f9e8adcd6f04c6b136167b8364a4a024ef62df24;hb=620a88ede2ad25e66d9cbb521388ee53e4a564c0;hp=2686552c2ae061248399302be2f610bc27b430ea;hpb=6808d7a16ec1e761c6a2dffec2281c96953e4d89;p=vchess.git diff --git a/client/src/views/News.vue b/client/src/views/News.vue index 2686552c..f9e8adcd 100644 --- a/client/src/views/News.vue +++ b/client/src/views/News.vue @@ -1,8 +1,11 @@ @@ -48,7 +57,7 @@ export default { }, created: function() { ajax("/news", "GET", { cursor: this.cursor }, res => { - this.newsList = res.newsList.sort((n1, n2) => n1.added - n2.added); + this.newsList = res.newsList.sort((n1, n2) => n2.added - n1.added); const L = res.newsList.length; if (L > 0) this.cursor = this.newsList[0].id; }); @@ -142,27 +151,36 @@ export default { [type="checkbox"].modal+div .card max-width: 767px max-height: 100% + textarea#newsContent margin: 0 width: 100% min-height: 200px max-height: 100% + #dialog padding: 5px color: blue -button#writeNews + +#writeNews + padding-top: 50px + +button#writeNewsBtn, button#loadMoreBtn margin-top: 0 margin-bottom: 0 + span.ndt color: darkblue padding: 0 5px 0 var(--universal-margin) -.margintop - margin-top: 25px - border-top: 1px solid grey + .news padding-top: 10px & > div display: inline-block + +.margintop + margin-top: 25px + border-top: 1px solid grey @media screen and (max-width: 767px) .margintop margin-top: 10px