Merge pull request #214 from hakadao/bugfixes

Bugfixes
This commit is contained in:
Hakadao
2024-01-23 02:01:17 +08:00
committed by GitHub
5 changed files with 14 additions and 9 deletions

View File

@@ -19,6 +19,6 @@ jobs:
token: ${{ secrets.RELEASE_TOKEN }}
release-type: node
package-name: release-please-action
release-as: 0.14.2
release-as: 0.14.3
signoff: 'github-actions <41898282+github-actions[bot]@users.noreply.github.com>'
changelog-types: '[{"type":"types","section":"Types","hidden":false},{"type":"revert","section":"Reverts","hidden":false},{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"improvement","section":"Feature Improvements","hidden":false},{"type":"docs","section":"Docs","hidden":false},{"type":"i18n","section":"I18n","hidden":false},{"type":"style","section":"Style Changes","hidden":false},{"type":"ci","section":"CI","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false},{"type":"contributor","section":"New Contributors","hidden":false},{"type":"notice","section":"Notices","hidden":false}]'

View File

@@ -143,6 +143,9 @@ function handleScroll() {
scrollTop.value = document.documentElement.scrollTop
}
if (scrollTop.value === 0)
toggleTopBarVisible(true)
if (settings.value.autoHideTopBar && !hoveringTopBar.value && scrollTop.value !== 0) {
if (scrollTop.value > oldScrollTop.value)
toggleTopBarVisible(false)

View File

@@ -56,7 +56,7 @@ function isSupportedPages() {
// notifications page
|| /https?:\/\/message.bilibili.com\.*/.test(currentUrl)
// bilibili channel page b站分区页面
|| /https?:\/\/www.bilibili.com\/v\/.*/.test(currentUrl)
|| /https?:\/\/www.bilibili.com\/v\/(?!popular).*/.test(currentUrl)
// anime page & chinese anime page
|| /https?:\/\/www.bilibili.com\/(anime|guochuang).*/.test(currentUrl)
// channel page e.g. tv shows, movie, variety shows, mooc page

View File

@@ -115,10 +115,7 @@ async function getFavoriteResources(
if (Array.isArray(res.data.medias) && res.data.medias.length > 0)
favoriteResources.push(...res.data.medias)
if (
res.data.medias === null
|| (res.data.medias.length < 20 && favoriteResources.length > 0)
)
if (!res.data.medias)
noMoreContent.value = true
}
}
@@ -158,7 +155,7 @@ function handleUnfavorite(favoriteResource: FavoriteResource) {
csrf: getCSRF(),
}).then((res) => {
if (res.code === 0)
favoriteResources.splice(favoriteResources.indexOf(favoriteResource), 1)
favoriteResources.splice(favoriteResources.indexOf(favoriteResource as FavoriteItem), 1)
})
}
</script>

View File

@@ -9,7 +9,7 @@
// box-shadow: none;
// z-index: 60;
// }
// .header-channel-fixed {
// background-color: var(--bew-elevated-2);
// backdrop-filter: var(--bew-filter-glass);
@@ -34,6 +34,11 @@
// filter: var(--bew-filter-icon-glow);
// }
.bili-live-card .bili-live-card__info--living img,
.single-card.floor-card .living > img {
filter: var(--bew-filter-icon-glow);
}
&.dark {
.floor-card .floor-title {
color: var(--bew-text-1);
@@ -43,4 +48,4 @@
background-color: var(--bew-content-solid-1);
}
}
}
}