- commit
- 3c076c52613cb61fef200b04e25e4cef379f40ce
- parent
- 71e69016f8d67428804d482b8ca12ab51eb79001
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-12-21 12:52
hide button when there is no more to fetch
Diffstat
| M | plutopluto/static/plutopluto.js | 1 | + |
| M | plutopluto/static/style.css | 4 | ++++ |
2 files changed, 5 insertions, 0 deletions
diff --git a/plutopluto/static/plutopluto.js b/plutopluto/static/plutopluto.js
@@ -121,6 +121,7 @@ var renderMore = locked(async function() {
121 121 await loadNextPage();
122 122 }
123 123 if (entries.length === 0) {
-1 124 loading.hidden = true;
124 125 return;
125 126 }
126 127 appendEntries(entries.splice(0, 10));
diff --git a/plutopluto/static/style.css b/plutopluto/static/style.css
@@ -13,6 +13,10 @@ html {
13 13 font-family: sans-serif;
14 14 }
15 15
-1 16 [hidden] {
-1 17 display: none !important;
-1 18 }
-1 19
16 20 body {
17 21 max-inline-size: 45em;
18 22 margin-block: 0;