Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ai-shifu/fullscreen-dialog-portal
当 cook-web 页面在浏览器 fullscreen 场景下需要展示基于 Dialog 的支付弹窗、设置弹窗或业务弹层时,使用本技能排查 portal 容器是否落在全屏节点外。
Passed 19 of 21 test cases with the skill, and 15 of 21 without it.
and 1 more in the full report
4 fixed16 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
Our slide viewport has floating feedback overlays and prompt cards that get cut off or covered by slide loaders when in full screen, and our mobile modal dialogs lack uniform margin spacing. Could you inspect our modal component and slide overlay system, fix the stacking context z-index hierarchy and portal container targeting, and return the refactored code?
| Checked | Without skill | With skill |
|---|---|---|
| Sets the shared Dialog overlay and content z-index higher than the slide component local float level of 91. | Missed | Passed |
| Applies uniform mobile width and margin constraints on the core DialogContent component instead of individual modals. | Passed | Passed |
The instructions your model reads when the skill loads.
Dialog 的弹层若仍 portal 到 document.body,就会出现“状态已打开但界面看不到”的现象。document.fullscreenElement 监听逻辑。container,fullscreen 自动兜底必须保留显式覆盖能力,避免影响已有定制挂载点。body 导致闪烁或不可见。Dialog,像追问浮层、评分卡片、引导卡片这类普通业务浮层若定位依赖 absolute/fixed,在 fullscreen 下也要确认它们是否仍渲染在 fullscreen 视口树内;若不是,同样需要 portal 到 slide__viewport 之类的宿主节点。src/components/ui/Dialog.tsx 的基础弹窗默认要保留稳定的视口边距,优先在通用 DialogContent 上统一约束宽度,而不是在每个业务弹窗里分别补 w-[calc(100vw-32px)]。Dialog 的遮罩层级要高于听课 slide 内部 loading / ask / interaction 这类局部浮层;若 slide 局部浮层使用 z-[91] 一类层级,通用 Dialog 遮罩和内容应在封装层统一使用更高层级,避免业务弹窗被 slide 区域盖住或糊住。src/components/ui/Dialog.tsx 这类通用封装,而不是业务侧自己 createPortal。DialogPortal 的 container 是否仍为空,导致默认挂到 body。fullscreenchange 监听,并保留外部 container 的覆盖入口。test cases passed, vs 15 / 21 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.