⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
reduce padding and gap in various components for an improved user interface + styling
daniel31x130463a334ce25
diff --git a/apps/web/components/DashboardLinks.tsx b/apps/web/components/DashboardLinks.tsxindex 7fc504fd..8ef80529 100644--- a/apps/web/components/DashboardLinks.tsx+++ b/apps/web/components/DashboardLinks.tsx@@ -40,7 +40,7 @@ export function DashboardLinks({}) {return (<div- className={`flex gap-5 overflow-x-auto overflow-y-hidden hide-scrollbar w-full min-h-fit`}+ className={`flex gap-3 overflow-x-auto overflow-y-hidden hide-scrollbar w-full min-h-fit`}>{isLoading ? (<div className="flex flex-col gap-4 min-w-60 w-60">diff --git a/apps/web/components/LinkViews/Links.tsx b/apps/web/components/LinkViews/Links.tsxindex afd3d1f5..9dacd62d 100644--- a/apps/web/components/LinkViews/Links.tsx+++ b/apps/web/components/LinkViews/Links.tsx@@ -61,10 +61,10 @@ function CardView({const getColumnCount = () => {const width = window.innerWidth;- if (width >= 1901) return 5;- if (width >= 1501) return 4;- if (width >= 881) return 3;- if (width >= 551) return 2;+ if (width >= 1501) return 5;+ if (width >= 881) return 4;+ if (width >= 701) return 3;+ if (width >= 501) return 2;return 1;};@@ -116,7 +116,7 @@ function CardView({}, [settings.columns]);return (- <div className={`${gridColClass} grid gap-5 pb-5`}>+ <div className={`${gridColClass} grid gap-3 pb-3`}>{links?.map((e) => {const collection = collectionsById.get(e.collection.id as number);const selected = isSelected(e.id as number);@@ -193,10 +193,10 @@ function MasonryView({const getColumnCount = () => {const width = window.innerWidth;- if (width >= 1901) return 5;- if (width >= 1501) return 4;- if (width >= 881) return 3;- if (width >= 551) return 2;+ if (width >= 1501) return 5;+ if (width >= 881) return 4;+ if (width >= 701) return 3;+ if (width >= 501) return 2;return 1;};@@ -247,15 +247,15 @@ function MasonryView({};}, [settings.columns]);- const breakpointColumnsObj = { default: 5, 1900: 4, 1500: 3, 880: 2, 550: 1 };+ const breakpointColumnsObj = { default: 5, 1500: 4, 881: 3, 700: 2, 500: 1 };return (<MasonrybreakpointCols={settings.columns === 0 ? breakpointColumnsObj : columnCount}- columnClassName="flex flex-col gap-5 !w-full"- className={`${gridColClass} grid gap-5 pb-5`}+ columnClassName="flex flex-col gap-3 !w-full"+ className={`${gridColClass} grid gap-3 pb-3`}>{links?.map((e) => {const collection = collectionsById.get(e.collection.id as number);diff --git a/apps/web/components/ProfileDropdown.tsx b/apps/web/components/ProfileDropdown.tsxindex 9e6fcaef..e4cf8a59 100644--- a/apps/web/components/ProfileDropdown.tsx+++ b/apps/web/components/ProfileDropdown.tsx@@ -1,4 +1,3 @@-import useLocalSettingsStore from "@/store/localSettings";import ProfilePhoto from "./ProfilePhoto";import Link from "next/link";import { signOut } from "next-auth/react";@@ -15,7 +14,6 @@ import { Button } from "./ui/button";export default function ProfileDropdown() {const { t } = useTranslation();- const { settings } = useLocalSettingsStore();const updateUserPreference = useUpdateUserPreference();const { data: user } = useUser();@@ -38,7 +36,7 @@ export default function ProfileDropdown() {/></Button></DropdownMenuTrigger>- <DropdownMenuContent align="end">+ <DropdownMenuContent align="end" className="min-w-40"><DropdownMenuItem asChild><Link href="/settings/account" className="whitespace-nowrap"><i className="bi-gear"></i>diff --git a/apps/web/components/SettingsSidebar.tsx b/apps/web/components/SettingsSidebar.tsxindex a22cef85..0bce09c2 100644--- a/apps/web/components/SettingsSidebar.tsx+++ b/apps/web/components/SettingsSidebar.tsx@@ -25,7 +25,7 @@ export default function SettingsSidebar({ className }: { className?: string }) {}`}><div className="flex flex-col gap-1">- <div className="flex items-center justify-between mb-4">+ <div className="flex items-center justify-between mb-3">{user?.theme === "light" ? (<Imagesrc={"/linkwarden_light.png"}diff --git a/apps/web/components/Sidebar.tsx b/apps/web/components/Sidebar.tsxindex c1376d6d..85d5d536 100644--- a/apps/web/components/Sidebar.tsx+++ b/apps/web/components/Sidebar.tsx@@ -100,7 +100,7 @@ export default function Sidebar({: "gap-1")}>- <div className="flex items-center justify-between mb-4">+ <div className="flex items-center justify-between mb-3">{sidebarIsCollapsed ? (<Imagesrc={"/icon.png"}@@ -225,7 +225,7 @@ export default function Sidebar({onClick={() => {setCollectionDisclosure(!collectionDisclosure);}}- className="flex items-center justify-between w-full text-left mb-2 pl-2 font-bold text-neutral mt-5"+ className="flex items-center justify-between w-full text-left mb-2 pl-2 font-bold text-neutral mt-4"><p className="text-sm">{t("collections")}</p><i@@ -252,7 +252,7 @@ export default function Sidebar({onClick={() => {setTagDisclosure(!tagDisclosure);}}- className="flex items-center justify-between w-full text-left mb-2 pl-2 font-bold text-neutral mt-5"+ className="flex items-center justify-between w-full text-left mb-2 pl-2 font-bold text-neutral mt-4"><p className="text-sm">{t("tags")}</p><idiff --git a/apps/web/layouts/SettingsLayout.tsx b/apps/web/layouts/SettingsLayout.tsxindex faf14ccf..a66571ed 100644--- a/apps/web/layouts/SettingsLayout.tsx+++ b/apps/web/layouts/SettingsLayout.tsx@@ -20,7 +20,7 @@ export default function SettingsLayout({ children }: Props) {<div className="lg:w-[calc(100%-320px)] w-full sm:pb-0 pb-20 flex flex-col h-screen overflow-y-auto"><Navbar settings />- <div className="p-5 mx-auto w-full max-w-7xl">+ <div className="p-3 mx-auto w-full max-w-3xl min-[2000px]:max-w-6xl"><div className="gap-2 mb-3"><Button asChild variant="ghost" size="sm" className="text-neutral"><Link href="/dashboard">diff --git a/apps/web/pages/collections/index.tsx b/apps/web/pages/collections/index.tsxindex 51fc2946..a3f9e7a8 100644--- a/apps/web/pages/collections/index.tsx+++ b/apps/web/pages/collections/index.tsx@@ -54,7 +54,7 @@ const Page: NextPageWithLayout = () => {const [newCollectionModal, setNewCollectionModal] = useState(false);return (- <div className="p-5 flex flex-col gap-5 w-full h-full">+ <div className="p-3 flex flex-col gap-5 w-full h-full"><div className="flex justify-between"><div className="flex items-center gap-3"><PageHeader@@ -107,7 +107,7 @@ const Page: NextPageWithLayout = () => {</Button></div>) : (- <div className="grid 2xl:grid-cols-4 xl:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-5">+ <div className="grid 2xl:grid-cols-4 xl:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-3">{sortedCollections.filter((e) => e.ownerId === data?.user.id && e.parentId === null).map((e) => (diff --git a/apps/web/pages/dashboard.tsx b/apps/web/pages/dashboard.tsxindex fde40a89..4bb13f5f 100644--- a/apps/web/pages/dashboard.tsx+++ b/apps/web/pages/dashboard.tsx@@ -132,7 +132,7 @@ const Page: NextPageWithLayout = () => {return (<>- <div className="p-5 flex flex-col gap-4">+ <div className="p-3 flex flex-col gap-3"><div className="flex items-center justify-between"><div className="flex items-center gap-2"><i className="bi-house-fill text-primary" />@@ -242,7 +242,7 @@ const Section = ({switch (sectionData.type) {case DashboardSectionType.STATS:return (- <div className="xl:flex flex flex-col sm:grid grid-cols-2 gap-4 xl:flex-row xl:justify-evenly xl:w-full">+ <div className="xl:flex flex flex-col sm:grid grid-cols-2 gap-3 xl:flex-row xl:justify-evenly xl:w-full"><DashboardItemname={numberOfLinks === 1 ? t("link") : t("links")}value={numberOfLinks}diff --git a/apps/web/pages/links/index.tsx b/apps/web/pages/links/index.tsxindex c3eecbdd..6177f70c 100644--- a/apps/web/pages/links/index.tsx+++ b/apps/web/pages/links/index.tsx@@ -34,7 +34,7 @@ const Page: NextPageWithLayout = () => {}, [router]);return (- <div className="p-5 flex flex-col gap-5 w-full h-full">+ <div className="p-3 flex flex-col gap-5 w-full h-full"><LinkListOptionst={t}viewMode={viewMode}diff --git a/apps/web/pages/links/pinned.tsx b/apps/web/pages/links/pinned.tsxindex 4c79539a..75b05e04 100644--- a/apps/web/pages/links/pinned.tsx+++ b/apps/web/pages/links/pinned.tsx@@ -27,7 +27,7 @@ const Page: NextPageWithLayout = () => {const [editMode, setEditMode] = useState(false);return (- <div className="p-5 flex flex-col gap-5 w-full h-full">+ <div className="p-3 flex flex-col gap-5 w-full h-full"><LinkListOptionst={t}viewMode={viewMode}diff --git a/apps/web/pages/search.tsx b/apps/web/pages/search.tsxindex 35bb89f9..4f3b830d 100644--- a/apps/web/pages/search.tsx+++ b/apps/web/pages/search.tsx@@ -41,7 +41,7 @@ const Page: NextPageWithLayout = () => {});return (- <div className="p-5 flex flex-col gap-5 w-full h-full">+ <div className="p-3 flex flex-col gap-5 w-full h-full"><LinkListOptionst={t}viewMode={viewMode}diff --git a/apps/web/pages/settings/preference.tsx b/apps/web/pages/settings/preference.tsxindex 4e42e1e5..1d38784c 100644--- a/apps/web/pages/settings/preference.tsx+++ b/apps/web/pages/settings/preference.tsx@@ -249,7 +249,7 @@ const Page: NextPageWithLayout = () => {<Separator className="my-3" /><div className="flex flex-col gap-5">- <div className="max-w-screen-sm">+ <div className="max-w-screen-sm w-full mx-auto"><div className="flex gap-3 w-full">{[{diff --git a/apps/web/pages/tags/[id].tsx b/apps/web/pages/tags/[id].tsxindex 1b5f1c7e..dce2948a 100644--- a/apps/web/pages/tags/[id].tsx+++ b/apps/web/pages/tags/[id].tsx@@ -137,7 +137,7 @@ const Page: NextPageWithLayout = () => {);return (- <div className="p-5 flex flex-col gap-5 w-full h-full">+ <div className="p-3 flex flex-col gap-5 w-full h-full"><LinkListOptionst={t}viewMode={viewMode}diff --git a/apps/web/pages/tags/index.tsx b/apps/web/pages/tags/index.tsxindex 91a08e9a..9ffa2f9c 100644--- a/apps/web/pages/tags/index.tsx+++ b/apps/web/pages/tags/index.tsx@@ -56,7 +56,7 @@ const Page: NextPageWithLayout = () => {}, [inView, hasNextPage, isFetchingNextPage, fetchNextPage]);return (- <div className="p-5 flex flex-col gap-5 w-full h-full">+ <div className="p-3 flex flex-col gap-5 w-full h-full"><div className="flex justify-between items-center"><div className="flex items-center gap-3"><PageHeader icon={"bi-hash"} title={t("tags")} />