Skip to content

Commit ac4db6b

Browse files
authored
fix: prevent prompt scrolling propagation (#6698)
* fix: prevent scrolling propagation * fix: added overflow to body when prompt is open * fix: moved prompt style fix from component to global style * fix: removed unnecessary has clause for prompt
1 parent 3f7713b commit ac4db6b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/renderer/themes.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ body {
2929
--logo-tertiary-color: var(--primary-text-color);
3030
}
3131

32-
3332
/*************** RULE TWEAKS ***************/
3433

3534
/* Default sidenav hover text color and primary input color not needed to be changed for most themes */
@@ -1989,3 +1988,9 @@ a:visited {
19891988
::-webkit-scrollbar-thumb:focus {
19901989
background: var(--scrollbar-color-hover);
19911990
}
1991+
1992+
/***** REMOVE MAIN SCROLLBAR WHEN PROMPT IS OPEN ******/
1993+
1994+
body:has(.prompt) {
1995+
overflow: hidden;
1996+
}

0 commit comments

Comments
 (0)