chore: directory migration - gateway→server, web→client/electron

This commit is contained in:
2026-09-08 19:16:35 +08:00
parent fd9f99a3f9
commit f9d757b5e5
243 changed files with 5095 additions and 228 deletions

View File

@ -0,0 +1,11 @@
import { useIsNarrow } from '../hooks/useIsNarrow';
/**
* 只在窄屏渲染子元素。
*
* 不用 Tailwind 的 `md:hidden`:那只是视觉隐藏,元素仍在 DOM 与 tab 序列里,
* 宽屏用户按 Tab 会聚焦到一个看不见的返回按钮上。
*/
export default function NarrowOnly({ children }: { children: React.ReactNode }) {
return useIsNarrow() ? <>{children}</> : null;
}