Skip to content

Commit da401a6

Browse files
committed
Restrict dialogs to the widget
1 parent 5eabdef commit da401a6

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/components/dialogs/create_data_set_dialog.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,15 @@ export class CreateDataSetDialog extends LitElementWw {
223223
static styles: CSSResult[] = [
224224
globalStyles,
225225
css`
226+
sl-dialog::part(base) {
227+
position: absolute;
228+
height: 100%;
229+
width: 100%;
230+
}
231+
sl-dialog::part(overlay) {
232+
position: absolute;
233+
width: 100%;
234+
}
226235
sl-dialog::part(body) {
227236
text-align: center;
228237
}

src/components/dialogs/manage_data_sets_dialog.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@ export class ManageDataSetsDialog extends LitElementWw {
5858

5959
// STYLES - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
6060
static styles: CSSResult = css`
61+
sl-dialog::part(base) {
62+
position: absolute;
63+
height: 100%;
64+
width: 100%;
65+
}
66+
67+
sl-dialog::part(overlay) {
68+
position: absolute;
69+
width: 100%;
70+
}
71+
6172
sl-dialog::part(body) {
6273
display: flex;
6374
flex-direction: column;

0 commit comments

Comments
 (0)