Skip to content

Commit 437a0c5

Browse files
authored
[UX] Fix position of dialog header (#3392)
* Fix position of dialog header * Fix changelog dialog being too tall
1 parent 6a6af53 commit 437a0c5

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/frontend/components/UI/Dialog/index.css

+16-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
opacity 500ms,
2525
transform 500ms;
2626
max-width: min(700px, 85vw);
27+
max-height: 95vh;
28+
29+
& img {
30+
max-width: 100%;
31+
}
2732
}
2833
.Dialog__element::backdrop {
2934
background: rgba(0, 0, 0, 0.4);
@@ -37,6 +42,8 @@
3742

3843
.Dialog__header {
3944
display: flex;
45+
z-index: 1;
46+
padding-bottom: var(--dialog-gap);
4047
}
4148

4249
.Dialog__headerTitle {
@@ -49,6 +56,14 @@
4956

5057
.Dialog__Close {
5158
padding: 0 var(--dialog-margin-horizontal) 0 0;
59+
z-index: 2;
60+
}
61+
62+
.Dialog__Close,
63+
.Dialog__header {
64+
position: sticky;
65+
top: 0px;
66+
background: var(--modal-background);
5267
}
5368

5469
.Dialog__CloseButton {
@@ -83,7 +98,7 @@
8398
}
8499

85100
.Dialog__content {
86-
padding: var(--dialog-gap) var(--dialog-margin-horizontal);
101+
padding: 0 var(--dialog-margin-horizontal) var(--dialog-gap);
87102
}
88103

89104
.Dialog__footer {

0 commit comments

Comments
 (0)