1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 01:25:56 +00:00

small stuck header fixes in grid mode

This commit is contained in:
Andrew Dolgov
2021-03-10 12:10:11 +03:00
parent bdc72e5b63
commit f58879c1dc
8 changed files with 38 additions and 32 deletions

View File

@@ -20,10 +20,10 @@ const Headlines = {
const header = entry.target.nextElementSibling;
if (entry.intersectionRatio == 0) {
header.setAttribute("stuck", "1");
header.setAttribute("data-is-stuck", "true");
} else if (entry.intersectionRatio == 1) {
header.removeAttribute("stuck");
header.removeAttribute("data-is-stuck");
}
//console.log(entry.target, header, entry.intersectionRatio);