From fa349ace7ce35337f6429d099ff2601635e797be Mon Sep 17 00:00:00 2001 From: Chris Mounce Date: Thu, 14 Aug 2025 00:21:30 -0700 Subject: [PATCH] Tweaks for mobile --- .gitignore | 1 + src/main.ts | 4 ++-- src/style.css | 6 ++++++ vite.config.ts | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c2658d7..1eae0cf 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +dist/ node_modules/ diff --git a/src/main.ts b/src/main.ts index 77a039f..a4b11fd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,10 +7,10 @@ const app = document.querySelector('#app')!; app.innerHTML = `

Synced editors

Network delay (simulated) of 2.5 to 5 seconds.

- +

- + `; const ta1 = document.getElementById('ta1') as HTMLTextAreaElement; diff --git a/src/style.css b/src/style.css index 5e9f2cb..f3058a6 100644 --- a/src/style.css +++ b/src/style.css @@ -33,3 +33,9 @@ h1 { font-size: 3.2em; line-height: 1.1; } + +textarea { + width: 100%; + max-width: 80ch; + box-sizing: border-box; +} diff --git a/vite.config.ts b/vite.config.ts index 2a08b9c..83e4f9e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,6 +1,7 @@ import { defineConfig } from 'vite'; export default defineConfig({ + base: './', root: '.', build: { outDir: 'dist',