aboutsummaryrefslogtreecommitdiff
path: root/src/components/conversation/conversation.vue
diff options
context:
space:
mode:
authorTusooa Zhu <tusooa@kazv.moe>2021-08-08 12:55:04 -0400
committerTusooa Zhu <tusooa@kazv.moe>2022-03-07 19:19:30 -0500
commit8780246ce5566e60520354f5a3de92eacd059f61 (patch)
tree927f4b6abb3741a0766fe87989b2e7704b31aed4 /src/components/conversation/conversation.vue
parent61bb69c88f6d70431a72bfb649d0f796b976a83b (diff)
Optimize thread border radius
Diffstat (limited to 'src/components/conversation/conversation.vue')
-rw-r--r--src/components/conversation/conversation.vue12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/components/conversation/conversation.vue b/src/components/conversation/conversation.vue
index cd108f69..11b5b3d8 100644
--- a/src/components/conversation/conversation.vue
+++ b/src/components/conversation/conversation.vue
@@ -130,10 +130,13 @@
.Conversation {
.conversation-undive-box {
padding: $status-margin;
+ border-bottom-width: 1px;
+ border-bottom-style: solid;
+ border-bottom-color: var(--border, $fallback--border);
+ border-radius: 0;
}
/* HACK: we want the border width to scale with the status *below it* */
- .conversation-undive-box,
.conversation-status {
border-top-width: 1px;
border-top-style: solid;
@@ -146,11 +149,14 @@
border-top-left-radius: var(--panelRadius, $fallback--panelRadius);
}
- /* first element in conversation body */
+ /* first element in a reply tree, the border is supplied by reply tree instead
+ for radius to display properly
+ */
&.-expanded .conversation-body {
.conversation-undive-box:nth-child(1),
& > .conversation-status:nth-child(1),
- & > .thread-body:nth-child(1) > .thread-tree:nth-child(1) > .conversation-status:nth-child(1), {
+ & > .thread-body:nth-child(1) > .thread-tree:nth-child(1) > .conversation-status:nth-child(1),
+ .thread-tree:nth-child(1) > .conversation-status:nth-child(1) {
border-top: none;
}
}