Files
cozsweet-frontend-nextjs/src/core/breakpoints.ts
T
admin 6e51cb7d16 Refactor: Remove original Dart references from comments across multiple files
- Updated comments in various components, schemas, and repositories to remove references to original Dart files.
- Ensured consistency in documentation while maintaining the context of the code.
2026-06-29 11:31:21 +08:00

22 lines
601 B
TypeScript

/**
* 响应式断点常量
*
*
*
* 与 `src/design/breakpoints.css` 中的 CSS 变量保持一致:
* - 客户端运行时检查(matchMedia)通过 `useBreakpoint` hook
* - 服务端 / 客户端 CSS 通过 `src/design/breakpoints.css` 的 media query
*/
export const Breakpoints = {
/** 手机设备最大宽度 */
mobileMaxWidth: 500,
/** 平板设备最小宽度 */
tabletMinWidth: 600,
/** 平板设备最大宽度 */
tabletMaxWidth: 1023,
/** 桌面设备最小宽度 */
desktopMinWidth: 1024,
} as const;
export type DeviceSize = "mobile" | "tablet" | "desktop";