@@ -3,30 +3,50 @@ import { useWindowSize } from "@/lib/hooks/useWindowSize"
33const DebugInfo = ( ) => {
44 const windowSize = useWindowSize ( )
55
6+ if ( process . env . NODE_ENV !== "development" ) {
7+ return null
8+ }
9+
610 return (
7- < div className = "flex flex-row justify-end gap-2 px-5 items-center" >
8- < div className = "rounded border px-2 sm:hidden text-xs" > xs</ div >
9- < div className = "rounded border px-2 hidden sm:block md:hidden text-xs" > sm</ div >
10- < div className = "rounded border px-2 hidden md:block lg:hidden text-xs" > md</ div >
11- < div className = "rounded border px-2 hidden lg:block xl:hidden text-xs" > lg</ div >
12- < div className = "rounded border px-2 hidden xl:block 2xl:hidden text-xs" > xl</ div >
13- < div className = "rounded border px-2 hidden 2xl:block 3xl:hidden text-xs" > 2xl</ div >
14- < div className = "rounded border px-2 hidden 3xl:block 4xl:hidden text-xs" > 3xl</ div >
15- < div className = "rounded border px-2 hidden 4xl:block 5xl:hidden text-xs" > 4xl</ div >
16- < div className = "text-xs" > | </ div >
17- < div className = "rounded border px-2 vsm:hidden text-xs" > vxs</ div >
18- < div className = "rounded border px-2 hidden vsm:block vlg:hidden text-xs" > vsm</ div >
19- < div className = "rounded border px-2 hidden vlg:block vxl:hidden text-xs" > vlg</ div >
20- < div className = "rounded border px-2 hidden vxl:block text-xs" > vxl</ div >
21- < div className = "text-muted-foreground text-xs" >
22- { windowSize . width } x{ windowSize . height }
23- </ div >
24- < div className = "text-muted-foreground text-xs" >
25- MobiFlight 2025
26- </ div >
27- < div className = "text-muted-foreground text-xs" > Version 1.0.0</ div >
28- </ div >
11+ < div className = "flex flex-row items-center justify-end gap-2 px-5" >
12+ < div className = "rounded border px-2 text-xs sm:hidden" > xs</ div >
13+ < div className = "hidden rounded border px-2 text-xs sm:block md:hidden" >
14+ sm
15+ </ div >
16+ < div className = "hidden rounded border px-2 text-xs md:block lg:hidden" >
17+ md
18+ </ div >
19+ < div className = "hidden rounded border px-2 text-xs lg:block xl:hidden" >
20+ lg
21+ </ div >
22+ < div className = "hidden rounded border px-2 text-xs xl:block 2xl:hidden" >
23+ xl
24+ </ div >
25+ < div className = "3xl:hidden hidden rounded border px-2 text-xs 2xl:block" >
26+ 2xl
27+ </ div >
28+ < div className = "3xl:block 4xl:hidden hidden rounded border px-2 text-xs" >
29+ 3xl
30+ </ div >
31+ < div className = "4xl:block 5xl:hidden hidden rounded border px-2 text-xs" >
32+ 4xl
33+ </ div >
34+ < div className = "text-xs" > | </ div >
35+ < div className = "vsm:hidden rounded border px-2 text-xs" > vxs</ div >
36+ < div className = "vsm:block vlg:hidden hidden rounded border px-2 text-xs" >
37+ vsm
38+ </ div >
39+ < div className = "vlg:block vxl:hidden hidden rounded border px-2 text-xs" >
40+ vlg
41+ </ div >
42+ < div className = "vxl:block hidden rounded border px-2 text-xs" > vxl</ div >
43+ < div className = "text-muted-foreground text-xs" >
44+ { windowSize . width } x{ windowSize . height }
45+ </ div >
46+ < div className = "text-muted-foreground text-xs" > MobiFlight 2025</ div >
47+ < div className = "text-muted-foreground text-xs" > Version 1.0.0</ div >
48+ </ div >
2949 )
3050}
3151
32- export default DebugInfo
52+ export default DebugInfo
0 commit comments