Skip to content

Commit 8577c57

Browse files
pref: enable scalable for mobile device (#536)
1 parent 850b5ed commit 8577c57

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

frontend/src/App.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ const onUnauthorized = () => {
171171
172172
onMounted(async () => {
173173
if (isWeb()) {
174+
// Force desktop layout on mobile (web only, desktop WebView unaffected)
175+
const isMobile = /Android|iPhone|iPad|iPod/i.test(navigator.userAgent)
176+
if (isMobile) {
177+
const meta = document.querySelector('meta[name="viewport"]')
178+
if (meta) meta.setAttribute('content', 'width=1280, user-scalable=yes')
179+
}
180+
174181
// Apply saved login theme before auth check to prevent flash
175182
const savedTheme = localStorage.getItem(STORAGE_THEME_KEY)
176183
if (savedTheme && prefStore.allThemes.includes(savedTheme)) {

0 commit comments

Comments
 (0)