Skip to content

Commit a0843fc

Browse files
author
Alexey Perov
committed
Build css usage fixes
1 parent 154033d commit a0843fc

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎app/src-tauri/tauri.conf.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
],
2121
"security": {
22-
"csp": "default-src 'self' ipc: http://ipc.localhost; img-src 'self' asset: http://asset.localhost https://asset.localhost blob: data:",
22+
"csp": "default-src 'self' ipc: http://ipc.localhost; style-src 'self' 'unsafe-inline'; img-src 'self' asset: http://asset.localhost https://asset.localhost blob: data:",
2323
"assetProtocol": {
2424
"enable": true,
2525
"scope": {

‎specs/changelog.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2026-06-03 — CodeMirror layout in production builds
4+
5+
- **Tauri CSP:** Add `style-src 'self' 'unsafe-inline'` so CodeMirror 6 runtime theme injection works in `tauri build` (fixes gutter/line numbers rendering as document text).
6+
37
## 2026-06-03 — Build warnings (ProjectTreeView, ImagePreviewPane)
48

59
- **ProjectTreeView:** Wrap `onMoveEntry` / `notify` in closures for Svelte 5 prop reactivity; add `tabindex="0"` on `role="tree"` container.

0 commit comments

Comments
 (0)