Files
lotteryFront/src/lib/player-viewport.ts
kang e5622c58cb
Some checks failed
lotteryfront CI / build (push) Has been cancelled
feat: 精简玩家端页面结构并支持局域网开发热更新
- 合并钱包、订单、开奖、通知等独立 screen 到页面层,减少重复壳组件
- 优化订单列表/详情、钱包划转与待对账展示、开奖核对与结果详情交互
- 改进入口 gate、移动端视口与下拉刷新在窄屏下的表现
- dev 绑定 0.0.0.0 并默认放行 192.168/10 网段,修复局域网 HMR WebSocket
2026-06-26 14:10:47 +08:00

13 lines
626 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** H5 玩家端逻辑宽度px桌面浏览器居中展示为「手机画布」 */
export const PLAYER_VIEWPORT_MAX_PX = 480;
/** 内容列:全宽但不超过手机逻辑宽度,水平居中 */
export const playerViewportColumnClass = "mx-auto w-full max-w-[480px]" as const;
/** 贴底/贴顶固定栏:与内容列同宽并居中(桌面不铺满整屏) */
export const playerViewportFixedBarClass =
"fixed left-1/2 z-50 w-full max-w-[480px] -translate-x-1/2" as const;
/** 刘海屏 / 全屏 WebView 顶部安全区 */
export const playerSafeAreaTopClass = "pt-[env(safe-area-inset-top,0px)]" as const;