Skip to content

Commit

Permalink
fix: set document overflow style to prevent screen jump (#601)
Browse files Browse the repository at this point in the history
* fix: set doc overflow auto

* chore: changeset
  • Loading branch information
AlinaGovoruhina authored Jun 11, 2024
1 parent 84f6c1d commit 158596e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/rare-parents-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sap/guided-answers-extension-webapp": patch
---

Prevent screen jump when opening a dialog
5 changes: 4 additions & 1 deletion packages/webapp/src/webview/ui/components/App/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ html {
font-family: var(--vscode-font-family);
-webkit-font-smoothing: antialiased;
}
body[role='document'] {
overflow: auto !important;
}

h1 {
color: var(--vscode-settings-headerForeground);
Expand Down Expand Up @@ -70,7 +73,7 @@ h1 {
margin-bottom: 10px;
margin-top: 0px;

>i {
> i {
vertical-align: middle;
}
}
Expand Down

0 comments on commit 158596e

Please sign in to comment.