Merge pull request #13 from w3irdrobot/fix-empty-unread

only show load more container when there are unreads
This commit is contained in:
styppo 2023-01-24 22:46:37 +00:00
commit 0ef9c65bde
No known key found for this signature in database
GPG Key ID: 3AAA685C50724C28

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="feed"> <div class="feed">
<div class="load-more-container" :class="{'more-available': numUnreads}"> <div class="load-more-container" :class="{'more-available': numUnreads}" v-if="numUnreads">
<AsyncLoadButton <AsyncLoadButton
v-if="numUnreads" v-if="numUnreads"
:load-fn="loadNewer" :load-fn="loadNewer"
@ -181,6 +181,10 @@ export default {
> .async-load-button:last-child { > .async-load-button:last-child {
border-bottom: 0; border-bottom: 0;
} }
> .thread:first-child, .load-more-container + .thread {
border-top: $border-dark;
}
} }
@media screen and (max-width: $phone) { @media screen and (max-width: $phone) {