Skip to content

Commit e1bf0c4

Browse files
authored
fix: expand Apple Watch detection to cover all model resolutions (#284)
1 parent 77de630 commit e1bf0c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/__root.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ function RootComponent(): JSX.Element {
120120
const [isAppleWatch, setIsAppleWatch] = useState(false);
121121
const router = useRouter();
122122

123-
// Detect Apple Watch screen size (typically 136-205px wide)
123+
// Detect Apple Watch screen size (312-416px wide across all models)
124124
useEffect(() => {
125125
const checkScreenSize = (): void => {
126-
setIsAppleWatch(window.innerWidth <= 205);
126+
setIsAppleWatch(window.innerWidth <= 416);
127127
};
128128

129129
checkScreenSize();

0 commit comments

Comments
 (0)