diff --git a/resources/js/components/forum/post-wrapper.vue b/resources/js/components/forum/post-wrapper.vue deleted file mode 100644 index 10eef8c3e1..0000000000 --- a/resources/js/components/forum/post-wrapper.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/resources/js/components/forum/post.vue b/resources/js/components/forum/post.vue index bd5b890140..eadd80cb17 100644 --- a/resources/js/components/forum/post.vue +++ b/resources/js/components/forum/post.vue @@ -1,152 +1,69 @@ - - + - + diff --git a/resources/js/pages/forum/posts.ts b/resources/js/pages/forum/posts.ts index d652d73b57..dc87bdad3f 100644 --- a/resources/js/pages/forum/posts.ts +++ b/resources/js/pages/forum/posts.ts @@ -2,18 +2,18 @@ import {mapGetters, mapState} from "vuex"; import VueForm from "../../components/forum/form.vue"; import VuePoll from "../../components/forum/poll.vue"; -import VuePostWrapper from "../../components/forum/post-wrapper.vue"; +import VuePost from "../../components/forum/post.vue"; import VuePagination from "../../components/pagination.vue"; import {PostCommentSaved, PostSaved, PostVoted, Subscriber} from "../../libs/live"; import store from "../../store/index"; -import {Post} from "../../types/models"; import {notify} from "../../toast"; +import {Post} from "../../types/models"; export default { name: 'Posts', delimiters: ['${', '}'], components: { - 'vue-post-wrapper': VuePostWrapper, + 'vue-post': VuePost, 'vue-form': VueForm, 'vue-poll': VuePoll, 'vue-pagination': VuePagination, diff --git a/resources/sass/components/forum/_post.scss b/resources/sass/components/forum/_post.scss index 7cc2dd2d8f..97315c96e5 100644 --- a/resources/sass/components/forum/_post.scss +++ b/resources/sass/components/forum/_post.scss @@ -113,7 +113,7 @@ } .post-content { - min-height: 89px; + min-height: 50px; word-wrap: break-word; line-height: 139%; overflow: hidden; @@ -181,8 +181,6 @@ .edit-info { font-size: 11px; - padding: 5px 0; - margin-top: 10px; color: $body-color; a { @@ -194,9 +192,7 @@ } } -.vote-count, .vote-up, .vote-accept { - color: lighten($gray-light, 10%); - +.vote-accept { width: 36px; text-align: center; display: block; @@ -215,12 +211,7 @@ line-height: 120%; } -.vote-up.on { - color: $primary; -} - .vote-up, .vote-count { - font-size: $font-size-lg; z-index: 1; // @see https://4programmers.net/Forum/Coyote/348514-kod_zaslania_liste_lapek?p=1741365#comment-690455 } diff --git a/resources/views/forum/topic.twig b/resources/views/forum/topic.twig index e5885761c3..f41d900bd6 100644 --- a/resources/views/forum/topic.twig +++ b/resources/views/forum/topic.twig @@ -129,12 +129,12 @@ - + >