From b7ed27ef704d821a9bfe657b653870b582203ce2 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 5 Mar 2024 20:56:37 +0800 Subject: [PATCH] Small catch-up adjustments --- src/pages/catchup.css | 14 +++++++++++--- src/pages/catchup.jsx | 11 ++++++++++- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/pages/catchup.css b/src/pages/catchup.css index 0c61c47a..d472dc38 100644 --- a/src/pages/catchup.css +++ b/src/pages/catchup.css @@ -232,6 +232,7 @@ background-color: var(--link-color); transition: 0.25s ease-in-out; transition-property: opacity, transform; + contain: none; &.post-dot-highlight { opacity: 1; @@ -489,7 +490,7 @@ } > li { - margin: 0 0 1px; + margin: 0 0 var(--hairline-width); padding: 0; list-style: none; /* border-bottom: var(--hairline-width) solid var(--outline-color); */ @@ -573,10 +574,11 @@ 'content content'; /* align-items: center; */ background-image: linear-gradient( - 160deg, + 140deg, var(--post-bg-color), - transparent min(80px, 50%) + transparent min(160px, 50%) ); + content-visibility: auto; /* background-image: linear-gradient( 90deg, var(--post-bg-color), @@ -664,6 +666,12 @@ } } + > li:first-child .post-line { + animation-duration: 0.1s; + } + > li:nth-child(2) .post-line { + animation-duration: 0.2s; + } > li:nth-child(10) ~ li .post-line { animation: none; } diff --git a/src/pages/catchup.jsx b/src/pages/catchup.jsx index 72deb8c4..ae76d28e 100644 --- a/src/pages/catchup.jsx +++ b/src/pages/catchup.jsx @@ -1050,7 +1050,16 @@ function Catchup() { ].map( (label) => !!filterCounts[label] && ( -