Skip to content

Commit 7a45ef0

Browse files
committed
Various mobile tweaks, always use explicit reference viewport for sizes
1 parent d7bfd9d commit 7a45ef0

17 files changed

Lines changed: 43 additions & 29 deletions

File tree

frontend/src/components/attachments/giphy/GiphyAttachment.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
display: block;
44
margin: 0 auto 8px;
55
width: 100%;
6-
max-height: clamp(100px, 30vh, 300px);
6+
max-height: clamp(100px, 30svh, 300px);
77
object-fit: contain;
88
}
99

frontend/src/components/attachments/giphy/GiphyPopup.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
flex-direction: column;
44
gap: 8px;
55
width: 900px;
6-
max-width: calc(100vw - 128px);
7-
max-height: calc(100vh - 128px);
6+
max-width: calc(100svw - 128px);
7+
max-height: calc(100dvh - 128px);
88

99
& form {
1010
display: flex;

frontend/src/components/common/Popup.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141

4242
.global-form {
43-
max-width: calc(100vw - 16px);
43+
max-width: calc(100svw - 16px);
4444
}
4545
}
4646

@@ -76,7 +76,7 @@
7676
padding: 16px 32px;
7777

7878
.global-form {
79-
max-width: calc(100vw - 64px);
79+
max-width: calc(100svw - 64px);
8080
}
8181
}
8282
}

frontend/src/components/global-styles/article.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.global-article {
2-
padding-bottom: 50vh;
2+
padding-bottom: 50lvh;
33

44
& section {
55
margin: 64px auto;

frontend/src/components/global-styles/form.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.global-form {
22
display: block;
33
width: 600px;
4-
max-width: calc(100vw - 32px);
4+
max-width: calc(100svw - 32px);
55

66
& label {
77
display: block;

frontend/src/components/items/ItemToast.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
var(--notification-back) 70%,
2323
transparent
2424
);
25-
max-width: min(calc(100vw - 64px), 300px);
25+
max-width: min(calc(100svw - 64px), 300px);
2626
line-clamp: 3;
2727
-webkit-box-orient: vertical;
2828
-webkit-line-clamp: 3;

frontend/src/components/retro-formats/RetroPreviewPage.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.page-retro-preview {
2-
width: 100vw;
2+
width: 100dvw;
33
box-sizing: border-box;
44
overflow: clip;
55
pointer-events: none;

frontend/src/components/retro-formats/health/HealthRetro.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
align-content: stretch;
44
position: relative;
55
min-height: max(
6-
calc(100vh - 192px - 3rem),
7-
min(calc(100vh - 3rem - 28px), 700px)
6+
calc(100svh - 192px - 3rem),
7+
min(calc(100svh - 3rem - 28px), 700px)
88
);
99
padding: 16px 8px 0;
1010
overflow: clip;
1111
background: var(--beige-back);
1212
--card-size-base: min(
13-
max(3vw, 11px),
14-
max(calc((100vh - 150px) * 0.03), 18px),
13+
max(3svw, 11px),
14+
max(calc((100svh - 150px) * 0.03), 18px),
1515
30px
1616
);
1717

frontend/src/components/retro-formats/health/ImportPopup.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
margin: 16px 0;
44
}
55

6+
input[type='date'] {
7+
max-width: calc(100svw - 16px); /* mobile Safari fix */
8+
}
9+
610
.data {
711
table-layout: fixed;
812
width: 100%;

frontend/src/components/retro-formats/health/questions/Questions.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ html:active-view-transition-type(health-advance) {
215215
::view-transition-group(health-answer) {
216216
animation-duration: 1.7s;
217217
--card-size-base: min(
218-
max(3vw, 11px),
219-
max(calc((100vh - 150px) * 0.03), 18px),
218+
max(3svw, 11px),
219+
max(calc((100svh - 150px) * 0.03), 18px),
220220
30px
221221
);
222222
height: calc(var(--card-size-base) * 13);

0 commit comments

Comments
 (0)