From 3bee8b7b2aff0e4a7e0a638d980b9c182aa68b5c Mon Sep 17 00:00:00 2001 From: Daniel Wilkowski Date: Mon, 4 Nov 2024 17:59:32 +0100 Subject: [PATCH] Add fold chevron and vertical gutter --- resources/js/components/forum/post.vue | 45 +++++++++++++++++++------- resources/views/forum/topic.twig | 2 +- 2 files changed, 34 insertions(+), 13 deletions(-) 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" >