Skip to content

Commit ce14823

Browse files
committed
fix(pwa): adjust height of watching indicator & fix i18n label
1 parent dcc2be7 commit ce14823

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

src/components/views/checkin/CheckinComponent.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ const onClick = () => {
211211
align-items: center;
212212
justify-content: space-between;
213213
height: 0;
214-
padding-bottom: layout.$safe-area-inset-bottom;
215214
overflow: hidden;
216215
color: var(--white-70);
217216
text-wrap: balance;
@@ -303,12 +302,12 @@ const onClick = () => {
303302
}
304303
305304
&.watching {
306-
height: 1.75rem;
305+
height: calc(1.75rem + #{layout.$safe-area-inset-bottom});
307306
308307
&:active,
309308
&:focus-within,
310309
&:hover {
311-
height: 3rem;
310+
height: calc(3rem + #{layout.$safe-area-inset-bottom});
312311
color: var(--white);
313312
314313
.icon {

src/i18n/en/common/button.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"message": "Check-in",
9292
"description": "Button to check-in."
9393
},
94-
"common__button__Watched": {
94+
"common__button__watched": {
9595
"message": "Watched",
9696
"description": "Button to mark as watched."
9797
}

src/styles/base.scss

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use '~/styles/reset';
2+
13
/* color palette from <https://github.com/vuejs/theme> */
24
:host {
35
/* height */

src/styles/reset.scss

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/* Avoid ugly unbalanced word wrap */
2+
h1,
3+
h2,
4+
h3,
5+
h4,
6+
h5,
7+
h6 {
8+
text-wrap: balance;
9+
}
10+
11+
/* Avoid ugly orphan word wrap */
12+
p,
13+
li,
14+
figcaption {
15+
max-width: 80ch;
16+
text-wrap: pretty;
17+
}

0 commit comments

Comments
 (0)