Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(selfie): raise the camera overlay above the corner stack so the shutter is tappable

nirholas3547d975f2c2
diff --git a/pages/create-selfie.html b/pages/create-selfie.html
index 6fae8e56c..fbc6b86fa 100644
--- a/pages/create-selfie.html
+++ b/pages/create-selfie.html
@@ -1009,17 +1009,37 @@
filter: brightness(0.92);
}
+ /* The camera is a full-screen modal, so it has to sit above the corner
+ stack (helper widgets, language switcher, getting-started pill),
+ which mounts at --z-corner-stack. At the old z-index of 1000 that
+ stack rendered ON TOP of the capture bar and, being fixed to the
+ bottom edge on phones, swallowed taps meant for the shutter and
+ Cancel. --z-overlay-modal is the platform's own token for exactly
+ this layer (public/corner-stack.js defines the ladder). */
#cam-overlay {
position: fixed;
inset: 0;
background: #000;
- z-index: 1000;
+ z-index: var(--z-overlay-modal, 2147483600);
display: none;
flex-direction: column;
}
#cam-overlay.open {
display: flex;
}
+ /* The action groups use display:contents so their buttons join the
+ .cam-bar flex row directly. An inline display:contents would beat
+ the UA's [hidden]{display:none}, which left the review buttons
+ visible during live capture (and vice versa); scoping both rules
+ here keeps `hidden` authoritative. */
+ #cam-actions-live,
+ #cam-actions-review {
+ display: contents;
+ }
+ #cam-actions-live[hidden],
+ #cam-actions-review[hidden] {
+ display: none;
+ }
#cam-stage {
position: relative;
flex: 1;
@@ -1989,7 +2009,7 @@
<div id="cam-error" hidden></div>
<div id="cam-review-verdict" role="status" aria-live="polite" hidden></div>
<div class="cam-bar">
- <div id="cam-actions-live" style="display: contents">
+ <div id="cam-actions-live">
<button type="button" data-cam-action="cancel" data-i18n="create_selfie.cancel">Cancel</button>
<button
type="button"
@@ -2000,7 +2020,7 @@
data-i18n-attr="aria-label:create_selfie.take_photo_arialabel"></button>
<div class="spacer"></div>
</div>
- <div id="cam-actions-review" hidden style="display: contents">
+ <div id="cam-actions-review" hidden>
<button type="button" data-cam-action="retake" data-i18n="create_selfie.retake">Retake</button>
<button type="button" data-cam-action="use" data-i18n="create_selfie.use_this">Use this</button>
</div>