Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ Das Format basiert auf [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
automatisch mit [git-cliff](https://git-cliff.org) aus den Commit-Messages generiert –
**nicht von Hand bearbeiten**.

## [0.9.1] - 2026-11-14

### Fixed

- **admin**: Verwaltung am Handy ohne Zoom

## [0.9.0] - 2026-11-14

### Added
Expand Down
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover" />
<title>MirrorNextGen</title>
</head>
<body>
Expand Down
3 changes: 3 additions & 0 deletions web/src/app/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ ul, ol { padding-left: 2rem; margin-top: 0; margin-bottom: 1rem; }
img, svg { vertical-align: middle; }

.visually-hidden { border: 0; clip: rect(0, 0, 0, 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }

/* No double-tap zoom, and no font inflation when a phone rotates. */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
24 changes: 24 additions & 0 deletions web/src/app/noZoom.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/// <reference types="node" />
import { readFileSync } from 'node:fs'
import { describe, expect, it } from 'vitest'

const read = (rel: string) => readFileSync(new URL(rel, import.meta.url), 'utf8')

describe('no zoom on phones', () => {
it('locks the viewport scale', () => {
const html = read('../../index.html')
const content = /<meta name="viewport" content="([^"]*)"/.exec(html)?.[1] ?? ''
expect(content).toContain('maximum-scale=1')
expect(content).toContain('user-scalable=no')
})

it('disables double-tap zoom in the shared base stylesheet', () => {
expect(read('./base.css')).toContain('touch-action: manipulation')
})

it('raises admin inputs to 16px on narrow screens, and the admin chunk loads that file', () => {
const css = read('../features/admin/admin.css')
expect(css).toMatch(/@media \(max-width: 48em\)\s*\{[\s\S]*font-size: 16px/)
expect(read('../features/admin/AdminApp.tsx')).toContain("import './admin.css'")
})
})
1 change: 1 addition & 0 deletions web/src/features/admin/AdminApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Suspense } from 'react'
import { Route, Routes } from 'react-router-dom'
import '@mantine/core/styles.css'
import '@mantine/notifications/styles.css'
import './admin.css'
import { ProtectedLayout } from './components/ProtectedLayout.tsx'
import { PublicGate } from './components/PublicGate.tsx'
import { LoginPage } from './pages/LoginPage.tsx'
Expand Down
10 changes: 10 additions & 0 deletions web/src/features/admin/admin.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* iOS Safari zooms into a focused field whose text is smaller than 16px and never zooms back. Mantine's inputs
use 14px, so on phone widths (Mantine's `sm` breakpoint) every text-entry control is raised to 16px. */
@media (max-width: 48em) {
.mantine-Input-input,
.mantine-InputWrapper-root input,
.mantine-InputWrapper-root textarea {
--input-fz: 16px;
font-size: 16px;
}
}
Loading