Skip to content

Commit 13c312d

Browse files
committed
fix: harden hide_cursor CSS so the cursor reliably disappears
Extend the hide_cursor style block to also target html, body, the ::before/::after pseudo-elements, and the :hover state so the cursor is hidden even when an element re-asserts a cursor via a pseudo-element or on hover. Fixes #784
1 parent 83ab67b commit 13c312d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

internal/templates/partials/head.templ

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ templ Head(viewData common.ViewData) {
2828
<link rel="icon" type="image/png" sizes="16x16" href="/assets/images/favicon-16x16.png"/>
2929
if viewData.HideCursor {
3030
<style>
31-
* {
31+
html,
32+
body,
33+
*,
34+
*::before,
35+
*::after,
36+
*:hover {
3237
cursor: none !important;
3338
}
3439
</style>

0 commit comments

Comments
 (0)