Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
replace localstorage with cookies in login form, more scrolling tweaks (#531)
Ameer Al Ashhab9172c8ae7917
diff --git a/apps/web/app/dashboard/_components/AdminNavbar/AdminMobileNav.tsx b/apps/web/app/dashboard/_components/AdminNavbar/AdminMobileNav.tsxindex 82c27b74f..d40671ee0 100644--- a/apps/web/app/dashboard/_components/AdminNavbar/AdminMobileNav.tsx+++ b/apps/web/app/dashboard/_components/AdminNavbar/AdminMobileNav.tsx@@ -47,7 +47,7 @@ export const AdminMobileNav = () => {</motion.div>) : null}</AnimatePresence>- <div className="flex fixed z-50 justify-between w-full h-16 border-b border-gray-3 bg-gray-1 lg:border-none lg:hidden">+ <div className="flex fixed z-[51] justify-between w-full h-16 border-b border-gray-3 bg-gray-1 lg:border-none lg:hidden"><div className="flex flex-shrink-0 items-center px-4 h-full lg:hidden"><Link className="block" href="/dashboard"><LogoBadge className="block w-auto h-8" />diff --git a/apps/web/app/globals.css b/apps/web/app/globals.cssindex e251330e9..1661964cb 100644--- a/apps/web/app/globals.css+++ b/apps/web/app/globals.css@@ -446,7 +446,7 @@ ul {} */.dashboard-page {- @apply flex overflow-auto flex-col flex-1 items-stretch custom-scroll;+ @apply flex flex-col flex-1 items-stretch;}.dashboard-header {diff --git a/apps/web/app/login/form.tsx b/apps/web/app/login/form.tsxindex d777b99cd..4b8102c84 100644--- a/apps/web/app/login/form.tsx+++ b/apps/web/app/login/form.tsx@@ -9,6 +9,7 @@ import {} from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import { AnimatePresence, motion } from "framer-motion";+import Cookies from "js-cookie";import { LucideArrowUpRight, LucideMail } from "lucide-react";import { signIn } from "next-auth/react";import Link from "next/link";@@ -27,7 +28,7 @@ export function LoginForm() {const [showOrgInput, setShowOrgInput] = useState(false);const [organizationId, setOrganizationId] = useState("");const [organizationName, setOrganizationName] = useState<string | null>(null);- const theme = localStorage.getItem("theme") || "light";+ const theme = Cookies.get("theme") || "light";useEffect(() => {theme === "dark"@@ -212,7 +213,7 @@ export function LoginForm() {toast.error("Error sending email - try again?");}})- .catch((err) => {+ .catch(() => {setEmailSent(false);setLoading(false);toast.error("Error sending email - try again?");