Skip to content

Commit

Permalink
Add safe-area-inset
Browse files Browse the repository at this point in the history
  • Loading branch information
NotWoods committed Sep 23, 2023
1 parent a3334e3 commit 8d671c4
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<script type="module" src="/src/viewer/change-mask.js"></script>
<script type="module" src="/src/editor/main.js"></script>
<script async src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
{{> meta }}
</head>

Expand Down
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<script type="module" src="/src/viewer/keys.js"></script>
<script type="module" src="/src/viewer/load-url.js"></script>
<script async src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
{{> meta }}
</head>

Expand Down Expand Up @@ -111,10 +112,10 @@

<section class="icon__grid">
<div class="icon__original">
<img class="icon" alt="Preview of original icon" src="demo/spec.svg" />
<img width="192" height="192" class="icon" alt="Preview of original icon" src="demo/spec.svg" />
</div>
<div class="icon__mask masked">
<img class="icon" alt="Preview of maskable icon" src="demo/spec.svg" />
<img width="192" height="192" class="icon" alt="Preview of maskable icon" src="demo/spec.svg" />
</div>
<div class="icon__shadow masked"></div>
</section>
Expand Down
1 change: 0 additions & 1 deletion partials/meta.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<link rel="preload" href="toggle/sun.svg" as="image" />
<link rel="preload" href="toggle/moon.svg" as="image" />

<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon_16.png" />
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon_32.png" />
<link rel="icon" type="image/png" sizes="196x196" href="favicon/favicon_196.png" />
Expand Down
3 changes: 3 additions & 0 deletions public/css/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ dark-mode-toggle {
background: var(--background);
position: relative;
overflow-y: auto;
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
}
.layers {
padding-left: env(safe-area-inset-left);
resize: horizontal;
overflow-x: hidden;
overflow-y: auto;
Expand Down
3 changes: 0 additions & 3 deletions public/css/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,6 @@ hr {
display: block;
margin: auto;
}
.contributors {
width: 100%;
}

.clip-paths {
position: absolute;
Expand Down
1 change: 1 addition & 0 deletions settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<script type="module" src="/src/viewer/upload-icon.js"></script>
<script type="module" src="/src/viewer/keys.js"></script>
<script async src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
{{> meta }}
</head>

Expand Down

0 comments on commit 8d671c4

Please sign in to comment.