fix(tailwind): strip all backticks from ResizeHandles comments — Tailwind v4 JIT parses backtick-wrapped text as CSS declarations
Follow-up to d1d344b. Tailwind's scanner still saw backtick-quoted
fragments like `decorations: false` and `position: fixed` in the
script comments as CSS property declarations, tripping on the next
JS identifier (getCurrentWindow). Removing all backticks from the
comment block sidesteps the entire scanner path.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
// Invisible resize-handle overlays around each Kon window edge.
|
// Invisible resize-handle overlays around each Kon window edge.
|
||||||
// Needed because Kon runs with `decorations: false`, so the WM
|
// Needed because Kon runs with decorations off, so the WM
|
||||||
// provides no resize affordance on KDE/GNOME Wayland.
|
// provides no resize affordance on KDE/GNOME Wayland.
|
||||||
//
|
//
|
||||||
// Architecture: eight fixed-position divs are the click target for
|
// Architecture: eight fixed-position divs are the click target for
|
||||||
@@ -11,12 +11,12 @@
|
|||||||
// the edges, drag wins on the titlebar.
|
// the edges, drag wins on the titlebar.
|
||||||
//
|
//
|
||||||
// Hit zone sizes come from CSS custom properties so every Kon window
|
// Hit zone sizes come from CSS custom properties so every Kon window
|
||||||
// across the app stays identical. See `--kon-resize-edge` and
|
// across the app stays identical. See the kon-resize-edge and
|
||||||
// `--kon-resize-corner` in app.css.
|
// kon-resize-corner custom properties in app.css.
|
||||||
//
|
//
|
||||||
// Placement requirement: instances of this component MUST be mounted
|
// Placement requirement: instances of this component MUST be mounted
|
||||||
// as a sibling of the animated/transformed layout root (not a child),
|
// as a sibling of the animated/transformed layout root (not a child),
|
||||||
// or `position: fixed` becomes relative to that transformed ancestor
|
// or fixed positioning becomes relative to that transformed ancestor
|
||||||
// instead of the viewport.
|
// instead of the viewport.
|
||||||
|
|
||||||
import { getCurrentWindow } from "@tauri-apps/api/window";
|
import { getCurrentWindow } from "@tauri-apps/api/window";
|
||||||
|
|||||||
Reference in New Issue
Block a user