Skip to content

Commit

Permalink
ios margins
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzapanther committed Dec 8, 2023
1 parent ab11fc2 commit 7217ec9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions layouts/partials/head/custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
const script = document.createElement('script');
script.src = '/app.js';
document.head.appendChild(script);
document.querySelector('.main-container').classList.add(Capacitor.getPlatform());
}
}
</script>
Expand Down
9 changes: 8 additions & 1 deletion static/overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,17 @@ p.j {

@media (max-width: 440px) {
.main-container {
padding: 12px 3px;
padding: 10px 3px;
}

.article-content {
padding: 0 7px;
}
}

.main-container.ios {
margin-top: env(safe-area-inset-top) !important;
margin-left: env(safe-area-inset-left) !important;
margin-right: env(safe-area-inset-right) !important;
margin-bottom: env(safe-area-inset-bottom) !important;
}

0 comments on commit 7217ec9

Please sign in to comment.