feat(webui): add mobile friendly file detail and public share view (#359)

* feat(webui): add mobile friendly file detail and public share view

* fix(webui): address review feedback for mobile file detail and public share view

* fix(webui): use dynamic viewport and flex column layout for mobile file viewer

* fix(webui): support iOS WebKit video fullscreen and guard requestFullscreen

* fix(webui): compact page indicator and layout in mobile PDF control bar
This commit is contained in:
Yiling-J
2026-08-28 15:11:33 +08:00
committed by GitHub
parent 7a1d6c0ab5
commit 6acebb73ec
42 changed files with 3071 additions and 216 deletions
@@ -228,11 +228,12 @@ export function CompareViewer({
)
const handleToggleFullScreen = useCallback(() => {
if (!rootRef.current) return
const el = rootRef.current
if (!el || typeof el.requestFullscreen !== 'function') return
if (!document.fullscreenElement) {
rootRef.current.requestFullscreen()
} else {
document.exitFullscreen()
el.requestFullscreen().catch(() => {})
} else if (document.exitFullscreen) {
document.exitFullscreen().catch(() => {})
}
}, [])