mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-25 01:51:37 -04:00
Fix mobile padding
This commit is contained in:
@@ -222,7 +222,7 @@ function Filters(props: {
|
||||
const [noMinAge, noMaxAge] = getNoMinMaxAge(filters.pref_age_min, filters.pref_age_max)
|
||||
|
||||
return (
|
||||
<Col className="mb-[calc(var(filter-offset)+env(safe-area-inset-bottom))] mt-[calc(var(filter-offset)+env(safe-area-inset-top))] pt-3">
|
||||
<Col className="mb-[calc(var(filter-offset)+env(safe-area-inset-bottom))] mt-[calc(var(--filter-offset)+env(safe-area-inset-top))] pt-3 pb-1">
|
||||
<SelectedFiltersSummary
|
||||
filters={filters}
|
||||
locationFilterProps={locationFilterProps}
|
||||
|
||||
@@ -8,13 +8,13 @@
|
||||
--bnh: env(safe-area-inset-bottom); /* native bottom nav height */
|
||||
--tnh: env(safe-area-inset-top); /* native top nav height */
|
||||
--hloss: calc(var(--bnh) + var(--tnh)); /* mobile height loss due to native top and bottom bars */
|
||||
--filter-offset: 20px; /* padding for filters on mobile */
|
||||
--filter-offset: 0px; /* padding for filters on mobile */
|
||||
touch-action: pan-y;
|
||||
}
|
||||
|
||||
/*@media (width < 600px) {*/
|
||||
/* --filter-offset: 0px;*/
|
||||
/*}*/
|
||||
@media (width < 600px) {
|
||||
--filter-offset: 20px;
|
||||
}
|
||||
|
||||
.safe-top {
|
||||
/*padding-top: calc(20px);*/
|
||||
|
||||
Reference in New Issue
Block a user