Skip to content

Commit 158596e

Browse files
fix: set document overflow style to prevent screen jump (#601)
* fix: set doc overflow auto * chore: changeset
1 parent 84f6c1d commit 158596e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/rare-parents-press.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sap/guided-answers-extension-webapp": patch
3+
---
4+
5+
Prevent screen jump when opening a dialog

packages/webapp/src/webview/ui/components/App/App.scss

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ html {
55
font-family: var(--vscode-font-family);
66
-webkit-font-smoothing: antialiased;
77
}
8+
body[role='document'] {
9+
overflow: auto !important;
10+
}
811

912
h1 {
1013
color: var(--vscode-settings-headerForeground);
@@ -70,7 +73,7 @@ h1 {
7073
margin-bottom: 10px;
7174
margin-top: 0px;
7275

73-
>i {
76+
> i {
7477
vertical-align: middle;
7578
}
7679
}

0 commit comments

Comments
 (0)