From d1440bb5d2f2190ad7ae1d26c165f970055b5370 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Mon, 20 Feb 2023 15:11:51 +0100 Subject: [PATCH] added pwa: extension for standalone, lots of mobile improvements (#7218) --- apps/web/pages/apps/index.tsx | 4 ++-- apps/web/pages/more.tsx | 6 +----- apps/web/styles/globals.css | 1 - .../_components/AppCategoryNavigation.tsx | 4 ++-- packages/config/tailwind-preset.js | 3 +++ packages/features/shell/Shell.tsx | 16 +++++++++------- packages/ui/components/button/Button.tsx | 2 +- .../navigation/tabs/HorizontalTabItem.tsx | 2 +- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/apps/web/pages/apps/index.tsx b/apps/web/pages/apps/index.tsx index 974c1918c7..9ad2aba989 100644 --- a/apps/web/pages/apps/index.tsx +++ b/apps/web/pages/apps/index.tsx @@ -57,8 +57,8 @@ export default function Apps({ categories, appStore }: inferSSRProps ( -
-
+
+
diff --git a/apps/web/pages/more.tsx b/apps/web/pages/more.tsx index bf79c40e32..ba6d308669 100644 --- a/apps/web/pages/more.tsx +++ b/apps/web/pages/more.tsx @@ -5,12 +5,8 @@ export default function MorePage() { const { t } = useLocale(); return ( -
+
- {/* Save it for next preview version -
- -
*/}

{t("more_page_footer")}

diff --git a/apps/web/styles/globals.css b/apps/web/styles/globals.css index 8ecebefc06..cd0ed081fa 100644 --- a/apps/web/styles/globals.css +++ b/apps/web/styles/globals.css @@ -105,7 +105,6 @@ html.todesktop nav a svg{ */ - /* Adds Utility to hide scrollbar to tailwind https://github.com/tailwindlabs/tailwindcss/discussions/2394 diff --git a/packages/app-store/_components/AppCategoryNavigation.tsx b/packages/app-store/_components/AppCategoryNavigation.tsx index dbf6a141f9..202a5d6669 100644 --- a/packages/app-store/_components/AppCategoryNavigation.tsx +++ b/packages/app-store/_components/AppCategoryNavigation.tsx @@ -31,7 +31,7 @@ const AppCategoryNavigation = ({ const appCategories = useMemo(() => getAppCategories(baseURL, useQueryParam), [baseURL, useQueryParam]); return ( -
+
-
+
diff --git a/packages/config/tailwind-preset.js b/packages/config/tailwind-preset.js index 15d9f2ef21..41545a0fe9 100644 --- a/packages/config/tailwind-preset.js +++ b/packages/config/tailwind-preset.js @@ -140,6 +140,9 @@ module.exports = { 900: "#f3f4f6", }, }, + screens: { + pwa: { raw: "(display-mode: standalone)" }, + }, keyframes: { "fade-in-up": { "0%": { diff --git a/packages/features/shell/Shell.tsx b/packages/features/shell/Shell.tsx index bafb1f8366..54e9a3084f 100644 --- a/packages/features/shell/Shell.tsx +++ b/packages/features/shell/Shell.tsx @@ -1,8 +1,10 @@ import type { User } from "@prisma/client"; import { signOut, useSession } from "next-auth/react"; import Link from "next/link"; -import { NextRouter, useRouter } from "next/router"; -import React, { Dispatch, Fragment, ReactNode, SetStateAction, useEffect, useState } from "react"; +import type { NextRouter } from "next/router"; +import { useRouter } from "next/router"; +import type { Dispatch, ReactNode, SetStateAction } from "react"; +import React, { Fragment, useEffect, useState } from "react"; import { Toaster } from "react-hot-toast"; import dayjs from "@calcom/dayjs"; @@ -22,7 +24,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale"; import useTheme from "@calcom/lib/hooks/useTheme"; import { trpc } from "@calcom/trpc/react"; import useMeQuery from "@calcom/trpc/react/hooks/useMeQuery"; -import { SVGComponent } from "@calcom/types/SVGComponent"; +import type { SVGComponent } from "@calcom/types/SVGComponent"; import { Button, Credits, @@ -640,7 +642,7 @@ const MobileNavigation = () => { <>