Compare commits

...

2 Commits

Author SHA1 Message Date
Anmol Singh Bhatia
447254abf7 fix: pwa input zoom 2024-08-01 20:14:00 +05:30
Anmol Singh Bhatia
091028504c fix: pwa input zoom 2024-08-01 19:59:36 +05:30
3 changed files with 19 additions and 3 deletions

View File

@@ -32,6 +32,7 @@ const ToastWithTheme = () => {
export const AppProvider: FC<IAppProvider> = (props) => {
const { children } = props;
// themes
return (
<>

View File

@@ -69,6 +69,13 @@ export const WorkspaceAuthWrapper: FC<IWorkspaceAuthWrapper> = observer((props)
{ revalidateIfStale: false, revalidateOnFocus: false }
);
if (window.navigator.userAgent.indexOf("iPhone") > -1) {
const viewportMeta = document.querySelector("[name=viewport]");
if (viewportMeta) {
viewportMeta.setAttribute("content", "width=device-width, initial-scale=1, maximum-scale=1");
}
}
const handleSignOut = async () => {
await signOut().catch(() =>
setToast({

View File

@@ -5,8 +5,16 @@ type Props = {
gradient?: boolean;
};
const DefaultLayout: FC<Props> = ({ children, gradient = false }) => (
<div className={`h-screen w-full overflow-hidden ${gradient ? "" : "bg-custom-background-100"}`}>{children}</div>
);
const DefaultLayout: FC<Props> = ({ children, gradient = false }) => {
if (window.navigator.userAgent.indexOf("iPhone") > -1) {
const viewportMeta = document.querySelector("[name=viewport]");
if (viewportMeta) {
viewportMeta.setAttribute("content", "width=device-width, initial-scale=1, maximum-scale=1");
}
}
return (
<div className={`h-screen w-full overflow-hidden ${gradient ? "" : "bg-custom-background-100"}`}>{children}</div>
);
};
export default DefaultLayout;