A tap on a phone is a click, not a zoom
Double-tap zoom is off from the root down, and the viewport's maximum scale keeps iOS from zooming into a small field when it takes focus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011FLuCjp9kNH6ovwJVXSbq9
This commit is contained in:
parent
0291d7c628
commit
b40564ad97
3 changed files with 7 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ and PUTs with ordinary CSRF protection — no endpoint in this app is exempt.
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||||
<title>arthur</title>
|
<title>arthur</title>
|
||||||
<link rel="stylesheet" href="{% static 'arthur/app.css' %}?v={{ css_version }}">
|
<link rel="stylesheet" href="{% static 'arthur/app.css' %}?v={{ css_version }}">
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||||
<title>arthur</title>
|
<title>arthur</title>
|
||||||
<style>
|
<style>
|
||||||
:root { --bg:#0b0d13; --panel:#12151f; --line:#232836; --fg:#e8eaf0;
|
:root { --bg:#0b0d13; --panel:#12151f; --line:#232836; --fg:#e8eaf0;
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,11 @@
|
||||||
* { box-sizing: border-box; }
|
* { box-sizing: border-box; }
|
||||||
|
|
||||||
html, body { margin: 0; height: 100%; overflow: hidden; }
|
html, body { margin: 0; height: 100%; overflow: hidden; }
|
||||||
|
/* AN EDITOR, NOT A PAGE: a tap is a click, never the first half of a
|
||||||
|
double-tap zoom. Set on the root, it reaches everything under it, and an
|
||||||
|
element that says `none` — the stage, a grip — still gets its own way. The
|
||||||
|
zoom on focusing a small field is the viewport's `maximum-scale`. */
|
||||||
|
html { touch-action: manipulation; }
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: var(--desk);
|
background: var(--desk);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue