Skip to content

Commit 87bcf59

Browse files
committed
feat(searchbar): full height expandable with top safe areas
1 parent 4419887 commit 87bcf59

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/core/components/searchbar/searchbar.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@
106106
background: transparent;
107107
}
108108
.navbar .searchbar.searchbar-expandable {
109-
--f7-searchbar-expandable-size: var(--f7-navbar-height);
109+
--f7-searchbar-expandable-size: calc(var(--f7-navbar-height) + var(--f7-safe-area-top));
110+
.searchbar-inner {
111+
top: var(--f7-safe-area-top);
112+
height: calc(100% - var(--f7-safe-area-top));
113+
}
110114
}
111115
.toolbar .searchbar.searchbar-expandable {
112116
--f7-searchbar-expandable-size: var(--f7-toolbar-height);

0 commit comments

Comments
 (0)