Tweaks for mobile

This commit is contained in:
2025-08-14 00:21:30 -07:00
parent 19e7675c52
commit fa349ace7c
4 changed files with 10 additions and 2 deletions
+1
View File
@@ -1 +1,2 @@
dist/
node_modules/ node_modules/
+2 -2
View File
@@ -7,10 +7,10 @@ const app = document.querySelector<HTMLDivElement>('#app')!;
app.innerHTML = ` app.innerHTML = `
<h1>Synced editors</h1> <h1>Synced editors</h1>
<p>Network delay (simulated) of 2.5 to 5 seconds.</p> <p>Network delay (simulated) of 2.5 to 5 seconds.</p>
<textarea id="ta1" rows=10 cols=80></textarea> <textarea id="ta1" rows=10></textarea>
<br> <br>
<br> <br>
<textarea id="ta2" rows=10 cols=80></textarea> <textarea id="ta2" rows=10></textarea>
`; `;
const ta1 = document.getElementById('ta1') as HTMLTextAreaElement; const ta1 = document.getElementById('ta1') as HTMLTextAreaElement;
+6
View File
@@ -33,3 +33,9 @@ h1 {
font-size: 3.2em; font-size: 3.2em;
line-height: 1.1; line-height: 1.1;
} }
textarea {
width: 100%;
max-width: 80ch;
box-sizing: border-box;
}
+1
View File
@@ -1,6 +1,7 @@
import { defineConfig } from 'vite'; import { defineConfig } from 'vite';
export default defineConfig({ export default defineConfig({
base: './',
root: '.', root: '.',
build: { build: {
outDir: 'dist', outDir: 'dist',