Stop text selection in the prompter overlay
Nothing set user-select, so a click that moved even slightly while landing on the script text selected it like a text field — an easy accident when reading off the overlay while presenting. This is a display, not a document: the pill gets user-select: none and cursor: default, and .word keeps its own explicit cursor: pointer so the tap-to-jump words stay visibly clickable.
This commit is contained in:
parent
271d83a430
commit
ab607344d6
1 changed files with 8 additions and 0 deletions
|
|
@ -153,6 +153,14 @@
|
||||||
padding: 14px 20px 10px;
|
padding: 14px 20px 10px;
|
||||||
border-radius: 18px;
|
border-radius: 18px;
|
||||||
background: rgba(10, 11, 13, var(--bg-opacity));
|
background: rgba(10, 11, 13, var(--bg-opacity));
|
||||||
|
/* This is a display, not a document: a drag across the words should
|
||||||
|
scrub the wheel-driven catch-up, not paint a text selection over the
|
||||||
|
highlight. `cursor: default` keeps the pointer from suggesting text is
|
||||||
|
there to select in the first place; `.word` overrides it back to a
|
||||||
|
pointer where a click actually does something. */
|
||||||
|
-webkit-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
cursor: default;
|
||||||
/* Mica and Acrylic are unavailable to a transparent WebView2 surface, so
|
/* Mica and Acrylic are unavailable to a transparent WebView2 surface, so
|
||||||
the frosted look is done in CSS against whatever shows through. */
|
the frosted look is done in CSS against whatever shows through. */
|
||||||
backdrop-filter: blur(20px) saturate(140%);
|
backdrop-filter: blur(20px) saturate(140%);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue