Use dynamic mapTopClass/mapHeightClass based on searchBar slot: - With searchBar: top-44 (176px), height calc(100vh-12rem) - Without searchBar: top-32 (128px), height calc(100vh-9rem)