Skip to content

Commit e17a1a4

Browse files
committed
fix zoom buttons rendering below viewport in iOS
1 parent 725141e commit e17a1a4

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/App.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,13 @@ body {
6363
// customize zoom button styles
6464
$border-radius: 6px;
6565

66+
.leaflet-bottom.leaflet-right {
67+
position: fixed;
68+
}
6669
.leaflet-bottom .leaflet-control {
6770
box-shadow: -6px 7px 15px #242424;
6871
margin-right: 28px;
69-
margin-bottom: 80px;
72+
margin-bottom: 32px;
7073
}
7174
.leaflet-container .leaflet-bar {
7275
border: unset;

src/Homepage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ class Homepage extends React.Component {
241241
/>
242242
</Map>
243243
)}
244+
244245
{this.state.currentVideo && this.state.videosPlaying > 0 && (
245246
<InfoBox
246-
hidden={false}
247247
{...this.state.currentVideo.info()}
248248
displayMode={this.props.displayMode}
249249
/>

src/components/InfoBox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ export default function InfoBox({ desc, displayMode, title, url }) {
5656

5757
if (closed) {
5858
intro.style.transition = "margin 300ms";
59-
intro.style.marginBottom = "80px"; // .leaflet-bottom .leaflet-control in App.scss
59+
intro.style.marginBottom = "32px"; // .leaflet-bottom .leaflet-control in App.scss
6060
} else {
6161
intro.style.transition = "margin 300ms 200ms";
62-
intro.style.marginBottom = `${height + 64}px`;
62+
intro.style.marginBottom = `${height + 24}px`;
6363
}
6464
}, [closed]);
6565

0 commit comments

Comments
 (0)