mirror of
https://github.com/usememos/memos.git
synced 2024-12-11 12:25:12 +03:00
fix: reappearing of dialog should add body scrolling class (#1602)
When dialog is reappeared after being in a hidden state. Then reappeaning should block further body scrolling for consistent UX.
This commit is contained in:
parent
dbb544dc92
commit
884dca20b3
@ -145,6 +145,7 @@ function showAskAIDialog() {
|
|||||||
if (dialogElement) {
|
if (dialogElement) {
|
||||||
dialogElement.classList.remove("showoff");
|
dialogElement.classList.remove("showoff");
|
||||||
dialogElement.classList.add("showup");
|
dialogElement.classList.add("showup");
|
||||||
|
document.body.classList.add("overflow-hidden");
|
||||||
} else {
|
} else {
|
||||||
generateDialog(
|
generateDialog(
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user