Skip to content

Commit

Permalink
Add tree topic guiderails
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Dec 2, 2024
1 parent 8e5b998 commit 698539d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/js/components/forum/post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
{'is-deleted': hidden, 'not-read': !post.is_read, 'highlight-flash': highlight, 'post-deleted-collapsed': isCollapsed},
postIndentCssClasses
]">
<div class="position-absolute post-guiderail" v-if="isChild">
</div>
<div v-if="post.deleted_at"
@click="isCollapsed = !isCollapsed"
class="post-delete card-body text-decoration-none">
Expand Down Expand Up @@ -519,6 +521,9 @@ export default {
if (post.indent === 4) return ['indent', 'indent-4'];
return ['indent', 'indent-5'];
},
isChild(): boolean {
return this.$props.post.indent > 1;
},
postDropdownVisible(): boolean {
return this.postDropdownItems.length > 0;
},
Expand Down
12 changes: 12 additions & 0 deletions resources/sass/components/forum/_tree_topic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,15 @@
margin-left: 48px;
}
}

.post-guiderail {
height: 100px;
left: -10px;
width: 10px;
top: -24px;
border: 2px solid #ddd;
border-bottom-left-radius: 6px;
border-top: none;
border-right: none;
z-index: -1;
}

0 comments on commit 698539d

Please sign in to comment.