diff --git a/resources/js/components/forum/post.vue b/resources/js/components/forum/post.vue index eadd80cb1..7daf41a2a 100644 --- a/resources/js/components/forum/post.vue +++ b/resources/js/components/forum/post.vue @@ -1,14 +1,29 @@ @@ -255,6 +273,9 @@ export default { uploadMimes: { type: String, }, + nestLevel: { + type: Number, + }, }, data() { return { diff --git a/resources/views/forum/topic.twig b/resources/views/forum/topic.twig index 38756a904..f00afb80a 100644 --- a/resources/views/forum/topic.twig +++ b/resources/views/forum/topic.twig @@ -134,7 +134,7 @@ :key="post.id" :post="post" @reply="reply" - :style="{'margin-left': key %2===1? '52px':'0px'}" + :nest-level="key % 2" >