mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 03:26:30 +00:00
Fix thread line gap above pinned tweet threads
This commit is contained in:
parent
f19443ed96
commit
a63368e871
3 changed files with 20 additions and 1 deletions
|
@ -24,6 +24,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachments {
|
.attachments {
|
||||||
|
margin: 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,6 +45,23 @@
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.with-header:not(:first-child)::after {
|
||||||
|
background: var(--accent_dark);
|
||||||
|
content: '';
|
||||||
|
position: relative;
|
||||||
|
float: left;
|
||||||
|
min-width: 3px;
|
||||||
|
width: 3px;
|
||||||
|
right: calc(100% - 26px);
|
||||||
|
border-radius: 2px;
|
||||||
|
margin-left: -3px;
|
||||||
|
margin-bottom: 37px;
|
||||||
|
bottom: 10px;
|
||||||
|
height: 30px;
|
||||||
|
z-index: 1;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
.unavailable::before {
|
.unavailable::before {
|
||||||
top: 48px;
|
top: 48px;
|
||||||
margin-bottom: 28px;
|
margin-bottom: 28px;
|
||||||
|
|
|
@ -41,7 +41,8 @@ proc renderThread(thread: seq[Tweet]; prefs: Prefs; path: string): VNode =
|
||||||
let sortedThread = thread.sortedByIt(it.id)
|
let sortedThread = thread.sortedByIt(it.id)
|
||||||
for i, tweet in sortedThread:
|
for i, tweet in sortedThread:
|
||||||
let show = i == thread.high and sortedThread[0].id != tweet.threadId
|
let show = i == thread.high and sortedThread[0].id != tweet.threadId
|
||||||
renderTweet(tweet, prefs, path, class="thread",
|
let header = if tweet.pinned or tweet.retweet.isSome: "with-header " else: ""
|
||||||
|
renderTweet(tweet, prefs, path, class=(header & "thread"),
|
||||||
index=i, total=thread.high, showThread=show)
|
index=i, total=thread.high, showThread=show)
|
||||||
|
|
||||||
proc threadFilter(it: Tweet; thread: int): bool =
|
proc threadFilter(it: Tweet; thread: int): bool =
|
||||||
|
|
Loading…
Reference in a new issue