fix: initialize tablet mobile boards consistently
This commit is contained in:
1 parent
b5ffefe707
commit
60cc1c1e29
1 file changed
+2
-1
@@ -65,7 +65,8 @@ export const createBoardLayout = <TParams extends Params>({
|
||||
throw error;
|
||||
});
|
||||
const [colorScheme, requestHeaders] = await Promise.all([getCurrentColorSchemeAsync(), headers()]);
|
||||
const initialIsMobile = userAgent(new Headers(requestHeaders)).device.type === "mobile";
|
||||
const deviceType = userAgent(new Headers(requestHeaders)).device.type;
|
||||
const initialIsMobile = deviceType === "mobile" || deviceType === "tablet";
|
||||
|
||||
return (
|
||||
<MobileBoardViewportProvider initialIsMobile={initialIsMobile}>
|
||||
|
||||
Reference in new issue
Block a user