Skip to content

Commit 1b82a1a

Browse files
committed
frontend: improve vertical centered spacing
This change only effects View component that have both props: verticallyCentered and withBottomBar. This 2 props are used together in setup and waiting view.
1 parent caa5890 commit 1b82a1a

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

frontends/web/src/components/view/view.module.css

+4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@
4747
margin-bottom: auto;
4848
margin-top: auto;
4949
}
50+
.verticallyCenteredWithBottomBar .inner {
51+
/* margin-bottom: auto; */
52+
margin-top: auto;
53+
}
5054
.inner.fit {
5155
flex-shrink: 0;
5256
max-height: 100%;

frontends/web/src/components/view/view.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ export const View = ({
6363
const containerClasses = `${
6464
style[fullscreen ? 'fullscreen' : 'fill']
6565
} ${
66-
verticallyCentered ? style.verticallyCentered : ''
66+
verticallyCentered ?
67+
withBottomBar
68+
? style.verticallyCenteredWithBottomBar
69+
: style.verticallyCentered
70+
: ''
6771
} ${
6872
dialog ? style.dialog : ''
6973
}`;

frontends/web/src/routes/device/bitbox02/components/password-entry/password-entry.module.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.passwordGesturesWrapper {
22
height: auto;
3-
margin: var(--space-default) auto 0 auto;
3+
margin: 0 auto;
44
position: relative;
55
width: 100%;
66
}

0 commit comments

Comments
 (0)