Skip to content

Commit 25a53ad

Browse files
devvaannshabose
authored andcommitted
fix: pro upgrade dialog footer getting out of viewport
1 parent 6134a6a commit 25a53ad

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

src/styles/phoenix-pro.less

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,21 @@
5353

5454
.pro-upgrade-dialog.modal {
5555
width: 880px;
56+
max-width: ~"min(calc(100vw - 32px), calc((100vh - 280px) * 16 / 9))";
57+
58+
display: flex;
59+
flex-direction: column;
60+
overflow: hidden !important;
5661

5762
.modal-header {
63+
flex: 0 0 auto;
5864
padding-bottom: 12px;
5965
}
6066

67+
.modal-footer {
68+
flex: 0 0 auto;
69+
}
70+
6171
.dialog-subtitle {
6272
margin: 6px 0 0;
6373
font-size: 13px;
@@ -66,8 +76,11 @@
6676
}
6777

6878
.modal-body {
79+
flex: 1 1 auto;
80+
min-height: 0;
6981
padding: 0;
7082
max-height: none;
83+
overflow: auto;
7184
}
7285

7386
.feature-carousel {
@@ -76,11 +89,12 @@
7689
user-select: none;
7790
}
7891

79-
/* ---- Media stage: video area with arrows + dots (16:9 at 880 wide) ---- */
8092
.feature-stage {
8193
position: relative;
8294
width: 100%;
83-
height: 495px;
95+
height: auto;
96+
aspect-ratio: 16 / 9;
97+
max-height: ~"min(495px, calc(100vh - 280px))";
8498
overflow: hidden;
8599
background: #1b1b1b;
86100
}

0 commit comments

Comments
 (0)