Skip to content

Commit f9fbda2

Browse files
author
OpenClaw Agent
committed
sweep: normalize — safe-area insets on crystal + voronoi fixed UI
1 parent 922a5e8 commit f9fbda2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

gallery/crystal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
body { background: #020408; display: flex; align-items: center; justify-content: center; height:100dvh; overflow: hidden; }
1313
canvas { display: block; image-rendering: pixelated; touch-action: none; }
1414
#ui {
15-
position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
15+
position: fixed; bottom: max(1.5rem, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);
1616
display: flex; gap: 0.75rem; align-items: center; z-index: 10;
1717
}
1818
button {

gallery/voronoi.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
body { background: #0a0a0a; overflow: hidden; cursor: crosshair; touch-action: none; height:100dvh}
1313
canvas { display: block; }
1414
.label {
15-
position: fixed; bottom: 1rem; left: 1rem;
15+
position: fixed; bottom: max(1rem, env(safe-area-inset-bottom, 0px)); left: max(1rem, env(safe-area-inset-left, 0px));
1616
font: 0.75rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
1717
color: #888; background: rgba(10,10,10,0.85);
1818
padding: 0.4rem 0.7rem; border-radius: 4px;
1919
pointer-events: none;
2020
}
2121
.back {
22-
position: fixed; top: 1rem; left: 1rem;
22+
position: fixed; top: max(1rem, env(safe-area-inset-top, 0px)); left: max(1rem, env(safe-area-inset-left, 0px));
2323
font: 0.8rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
2424
color: #aaa; background: rgba(10,10,10,0.85);
2525
padding: 0.5rem 0.8rem; border-radius: 4px;

0 commit comments

Comments
 (0)