mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-26 21:03:09 +02:00
update SkNoteSub & SkNoteDetailed
This commit is contained in:
parent
5db163bc67
commit
6bb6c60589
2 changed files with 30 additions and 4 deletions
|
@ -1079,4 +1079,14 @@ function animatedMFM() {
|
|||
margin-left: 0.2em;
|
||||
}
|
||||
}
|
||||
|
||||
[class*="threadAncestor"] + .note .noteHeader::before {
|
||||
position: absolute;
|
||||
content: '';
|
||||
width: 0px;
|
||||
height: 32px;
|
||||
left: 29px; // todo: adapt for container width
|
||||
border-left: 2.5px solid #0f0;
|
||||
top: -32px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -4,15 +4,15 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
-->
|
||||
|
||||
<template>
|
||||
<div v-if="!muted" ref="el" :class="[$style.root, { [$style.children]: depth > 1 }]">
|
||||
<div v-if="!hideLine" :class="$style.line"></div>
|
||||
<div v-if="!muted" ref="el" :class="[$style.root, { [$style.children]: depth > 1 }, { [$style.threadAncestor]: !hideLine }]">
|
||||
<!-- <div v-if="!hideLine" :class="$style.line"></div> -->
|
||||
<div :class="$style.main">
|
||||
<div v-if="note.channel" :class="$style.colorBar" :style="{ background: note.channel.color }"></div>
|
||||
<!-- new avatar container with line (post section) -->
|
||||
<div :class="$style.avatarContainer">
|
||||
<MkAvatar :class="$style.avatar" :user="note.user" link preview/>
|
||||
<template v-if="note.repliesCount > 0">
|
||||
<div v-if="hideLine" :class="$style.threadLine"></div>
|
||||
<div :class="[$style.threadLine, {[$style.threadAncestorLine]: !hideLine}]"></div>
|
||||
</template>
|
||||
</div>
|
||||
<!-- end new avatar container -->
|
||||
|
@ -562,6 +562,10 @@ if (props.detail) {
|
|||
flex-grow: 1;
|
||||
border-left: 2.5px solid rgb(174, 174, 174);
|
||||
margin-left: 29px;
|
||||
|
||||
&.threadAncestorLine {
|
||||
border-color: pink;
|
||||
}
|
||||
}
|
||||
|
||||
.reply {
|
||||
|
@ -599,6 +603,18 @@ if (props.detail) {
|
|||
}
|
||||
}
|
||||
|
||||
.threadAncestor {
|
||||
&:not(:first-of-type)::before {
|
||||
position: absolute;
|
||||
content: '';
|
||||
width: 0px;
|
||||
height: 56px;
|
||||
left: 61px; // todo: adapt for container width
|
||||
border-left: 2.5px solid #f00;
|
||||
top: -28px;
|
||||
}
|
||||
}
|
||||
|
||||
@container (max-width: 580px) {
|
||||
.threadLine, .reply {
|
||||
margin-left: 25px;
|
||||
|
|
Loading…
Reference in a new issue