fix(share): mobile share chrome and tabbar poster entry

Use a bottom sheet share panel on small screens and add a one-tap
poster button to the single-post footer tabbar extend.
This commit is contained in:
2026-07-16 22:31:18 +08:00
parent 357d710b1b
commit 2c31da1454
3 changed files with 76 additions and 2 deletions
+6 -2
View File
@@ -135,7 +135,8 @@
function closeDropdown() {
dropdown.setAttribute('aria-hidden', 'true');
trigger.setAttribute('aria-expanded', 'false');
triggers.forEach(function (t) { t.setAttribute('aria-expanded', 'false'); });
document.body.classList.remove('aksrt-share-sheet-open');
if (window.AksrtShare && typeof window.AksrtShare.hideQrFallback === 'function') {
window.AksrtShare.hideQrFallback(qrBox);
} else if (qrBox) {
@@ -152,7 +153,10 @@
}
dropdown.setAttribute('aria-hidden', 'false');
trigger.setAttribute('aria-expanded', 'true');
triggers.forEach(function (t) { t.setAttribute('aria-expanded', 'true'); });
if (window.matchMedia && window.matchMedia('(max-width: 767px)').matches) {
document.body.classList.add('aksrt-share-sheet-open');
}
}
trigger.addEventListener('click', function (event) {