Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 51d3603

Browse files
committed
fix(app-bar): update app-bar hight
* ion-content visible below the toolbar and fab cutout
1 parent 7893e4f commit 51d3603

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

projects/core/src/lib/app-bar/app-bar.component.scss

+6-7
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
--fiv-radius: 72px;
1010
--fiv-appbar-fab-size: 56px;
1111
--fiv-appbar-height: 56px;
12-
height: calc(
13-
var(--fiv-appbar-height) + env(safe-area-inset-bottom) +
14-
var(--fiv-appbar-fab-size) / 2
15-
);
1612
width: 100%;
1713
--fiv-border-radius: 6px;
1814
--fiv-color-appbar: var(--ion-color-light);
@@ -24,7 +20,10 @@ svg {
2420
width: var(--fiv-radius);
2521
left: calc(50% - (var(--fiv-radius) / 2));
2622
position: absolute;
27-
top: calc(var(--fiv-appbar-fab-size) / 2 + var(--fiv-border-radius));
23+
bottom: calc(
24+
env(safe-area-inset-bottom) + var(--fiv-appbar-height) - var(--fiv-radius) /
25+
2 - var(--fiv-border-radius)
26+
);
2827
polygon {
2928
fill: var(--fiv-color-appbar);
3029
}
@@ -35,7 +34,7 @@ svg {
3534
position: absolute;
3635
bottom: 0;
3736
left: 0;
38-
height: 100%;
37+
height: calc(var(--fiv-appbar-height) + env(safe-area-inset-bottom));
3938
background: rgba(0, 0, 0, 0);
4039
z-index: 5000;
4140
.appbar-rect {
@@ -59,7 +58,7 @@ svg {
5958
::ng-deep fiv-fab {
6059
position: absolute;
6160
left: calc(50% - 0.5 * var(--fiv-fab-size));
62-
top: var(--fiv-border-radius);
61+
top: calc(-0.5 * var(--fiv-appbar-fab-size) + var(--fiv-border-radius));
6362
display: block;
6463
--fiv-fab-size: var(--fiv-appbar-fab-size);
6564
z-index: 14;

0 commit comments

Comments
 (0)