summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRyan Vogel <[email protected]>2026-01-20 21:28:01 -0500
committerGitHub <[email protected]>2026-01-20 20:28:01 -0600
commita71c40c717241f16cc02131d8ddf5c5eef51c509 (patch)
treeca2a4ad72868c70af89db47a989cc4f350e946a1
parent489f2d37097ba99a31ecaccf45abcd74df39c3d3 (diff)
downloadopencode-a71c40c717241f16cc02131d8ddf5c5eef51c509.tar.gz
opencode-a71c40c717241f16cc02131d8ddf5c5eef51c509.zip
fix(app): fix numbered list rendering in web markdown (#9723)
-rw-r--r--packages/app/AGENTS.md8
-rw-r--r--packages/app/src/index.css20
2 files changed, 28 insertions, 0 deletions
diff --git a/packages/app/AGENTS.md b/packages/app/AGENTS.md
index 85e6a8466..765e960c8 100644
--- a/packages/app/AGENTS.md
+++ b/packages/app/AGENTS.md
@@ -2,6 +2,14 @@
- NEVER try to restart the app, or the server process, EVER.
+## Local Dev
+
+- `opencode dev web` proxies `https://app.opencode.ai`, so local UI/CSS changes will not show there.
+- For local UI changes, run the backend and app dev servers separately.
+- Backend (from `packages/opencode`): `bun run --conditions=browser ./src/index.ts serve --port 4096`
+- App (from `packages/app`): `bun dev -- --port 4444`
+- Open `http://localhost:4444` to verify UI changes (it targets the backend at `http://localhost:4096`).
+
## SolidJS
- Always prefer `createStore` over multiple `createSignal` calls
diff --git a/packages/app/src/index.css b/packages/app/src/index.css
index d9d51aa8f..4edbe2440 100644
--- a/packages/app/src/index.css
+++ b/packages/app/src/index.css
@@ -6,6 +6,26 @@
}
}
+[data-component="markdown"] ul {
+ list-style: disc outside;
+ padding-left: 1.5rem;
+}
+
+[data-component="markdown"] ol {
+ list-style: decimal outside;
+ padding-left: 1.5rem;
+}
+
+[data-component="markdown"] li > p:first-child {
+ display: inline;
+ margin: 0;
+}
+
+[data-component="markdown"] li > p + p {
+ display: block;
+ margin-top: 0.5rem;
+}
+
*[data-tauri-drag-region] {
app-region: drag;
}