A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
feat(web): visual revamp for the bookmark preview page
Mohamed Bassemf500129c7419
diff --git a/apps/web/app/dashboard/@modal/(.)preview/[bookmarkId]/page.tsx b/apps/web/app/dashboard/@modal/(.)preview/[bookmarkId]/page.tsxindex 6a204fd3..aff5de51 100644--- a/apps/web/app/dashboard/@modal/(.)preview/[bookmarkId]/page.tsx+++ b/apps/web/app/dashboard/@modal/(.)preview/[bookmarkId]/page.tsx@@ -34,11 +34,14 @@ export default function BookmarkPreviewPage(props: {</DialogHeader></VisuallyHidden><DialogContent- className="h-[90%] max-w-[90%] overflow-hidden p-0"+ className="h-[90%] max-w-[90%] overflow-hidden rounded-xl p-0"hideCloseBtn={true}onOpenAutoFocus={(e) => e.preventDefault()}>- <BookmarkPreview bookmarkId={params.bookmarkId} />+ <BookmarkPreview+ bookmarkId={params.bookmarkId}+ onClose={() => setOpenWithRouter(false)}+ /></DialogContent></Dialog>);diff --git a/apps/web/components/dashboard/bookmarks/SummarizeBookmarkArea.tsx b/apps/web/components/dashboard/bookmarks/SummarizeBookmarkArea.tsxindex 9cfaef5f..5a5a25ec 100644--- a/apps/web/components/dashboard/bookmarks/SummarizeBookmarkArea.tsx+++ b/apps/web/components/dashboard/bookmarks/SummarizeBookmarkArea.tsx@@ -46,7 +46,7 @@ function AISummary({<div className="w-full p-1">{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */}<div- className={`relative overflow-hidden rounded-lg p-4 transition-all duration-300 ease-in-out ${isExpanded ? "h-auto" : "cursor-pointer"} bg-gradient-to-r from-purple-400 via-pink-500 to-red-500 p-[2px]`}+ className={`relative overflow-hidden rounded-lg p-4 transition-all duration-300 ease-in-out ${isExpanded ? "h-auto" : "cursor-pointer"} border border-muted-foreground/20 p-[2px]`}onClick={() => !isExpanded && setIsExpanded(true)}><div className="h-full rounded-lg bg-accent p-2">@@ -137,18 +137,13 @@ export default function SummarizeBookmarkArea({<div className="flex w-full items-center gap-4"><ActionButtononClick={() => mutate({ bookmarkId: bookmark.id })}+ variant="secondary"className={cn(- `relative w-full overflow-hidden bg-opacity-30 bg-gradient-to-r from-blue-400 via-purple-500 to-pink-500 text-gray-50 transition-all duration-300`,+ `w-full text-muted-foreground transition-all duration-300 hover:text-foreground`,)}loading={isPending}>- {isPending && (- <div className="absolute inset-0 flex items-center justify-center">- <div className="h-full w-full bg-gradient-to-r from-blue-400 via-purple-500 to-pink-500"></div>- <LoadingSpinner className="absolute h-5 w-5 text-white" />- </div>- )}- <span className="relative z-10 flex items-center gap-1.5">+ <span className="flex items-center gap-1.5">{t("actions.summarize_with_ai")}<Sparkles className="size-4" /></span>diff --git a/apps/web/components/dashboard/bookmarks/TagsEditor.tsx b/apps/web/components/dashboard/bookmarks/TagsEditor.tsxindex 944fd790..3db641e7 100644--- a/apps/web/components/dashboard/bookmarks/TagsEditor.tsx+++ b/apps/web/components/dashboard/bookmarks/TagsEditor.tsx@@ -319,7 +319,7 @@ export function TagsEditor({className={cn("flex min-h-8 space-x-1 rounded px-2",tag.attachedBy == "ai"- ? "bg-gradient-to-tr from-purple-500 to-purple-400 text-white"+ ? "bg-purple-500 text-white": "bg-accent",)}>diff --git a/apps/web/components/dashboard/bookmarks/icons.tsx b/apps/web/components/dashboard/bookmarks/icons.tsxindex 04e3ff32..db338a21 100644--- a/apps/web/components/dashboard/bookmarks/icons.tsx+++ b/apps/web/components/dashboard/bookmarks/icons.tsx@@ -4,15 +4,23 @@ export function FavouritedActionIcon({favourited,className,size,+ strokeWidth,}: {favourited: boolean;className?: string;size?: number;+ strokeWidth?: number;}) {return favourited ? (- <Star size={size} className={className} color="#ebb434" fill="#ebb434" />+ <Star+ size={size}+ strokeWidth={strokeWidth}+ className={className}+ color="#ebb434"+ fill="#ebb434"+ />) : (- <Star size={size} className={className} />+ <Star size={size} strokeWidth={strokeWidth} className={className} />);}@@ -20,14 +28,20 @@ export function ArchivedActionIcon({archived,className,size,+ strokeWidth,}: {archived: boolean;className?: string;size?: number;+ strokeWidth?: number;}) {return archived ? (- <ArchiveRestore size={size} className={className} />+ <ArchiveRestore+ size={size}+ strokeWidth={strokeWidth}+ className={className}+ />) : (- <Archive size={size} className={className} />+ <Archive size={size} strokeWidth={strokeWidth} className={className} />);}diff --git a/apps/web/components/dashboard/preview/ActionBar.tsx b/apps/web/components/dashboard/preview/ActionBar.tsxindex 9603465e..6514fd8b 100644--- a/apps/web/components/dashboard/preview/ActionBar.tsx+++ b/apps/web/components/dashboard/preview/ActionBar.tsx@@ -50,7 +50,7 @@ export default function ActionBar({ bookmark }: { bookmark: ZBookmark }) {});return (- <div className="flex items-center justify-center gap-3">+ <div className="flex items-center justify-center gap-3 text-muted-foreground"><Tooltip delayDuration={0}><EditBookmarkDialogbookmark={bookmark}@@ -60,13 +60,14 @@ export default function ActionBar({ bookmark }: { bookmark: ZBookmark }) {<TooltipTrigger asChild><Button- variant="none"- className="size-14 rounded-full bg-background"+ variant="ghost"+ size="none"+ className="size-8 rounded-md"onClick={() => {setEditBookmarkDialogOpen(true);}}>- <Pencil />+ <Pencil size={18} strokeWidth={1.5} /></Button></TooltipTrigger><TooltipContent side="bottom">{t("actions.edit")}</TooltipContent>@@ -74,8 +75,9 @@ export default function ActionBar({ bookmark }: { bookmark: ZBookmark }) {<Tooltip delayDuration={0}><TooltipTrigger asChild><ActionButton- variant="none"- className="size-14 rounded-full bg-background"+ variant="ghost"+ size="none"+ className="size-8 rounded-md"loading={pendingFav}onClick={() => {favBookmark({@@ -84,7 +86,11 @@ export default function ActionBar({ bookmark }: { bookmark: ZBookmark }) {});}}>- <FavouritedActionIcon favourited={bookmark.favourited} />+ <FavouritedActionIcon+ favourited={bookmark.favourited}+ size={18}+ strokeWidth={1.5}+ /></ActionButton></TooltipTrigger><TooltipContent side="bottom">@@ -96,9 +102,10 @@ export default function ActionBar({ bookmark }: { bookmark: ZBookmark }) {<Tooltip delayDuration={0}><TooltipTrigger asChild><ActionButton- variant="none"+ variant="ghost"+ size="none"loading={pendingArchive}- className="size-14 rounded-full bg-background"+ className="size-8 rounded-md"onClick={() => {archiveBookmark({bookmarkId: bookmark.id,@@ -106,7 +113,11 @@ export default function ActionBar({ bookmark }: { bookmark: ZBookmark }) {});}}>- <ArchivedActionIcon archived={bookmark.archived} />+ <ArchivedActionIcon+ archived={bookmark.archived}+ size={18}+ strokeWidth={1.5}+ /></ActionButton></TooltipTrigger><TooltipContent side="bottom">@@ -121,11 +132,12 @@ export default function ActionBar({ bookmark }: { bookmark: ZBookmark }) {/><TooltipTrigger asChild><Button- className="size-14 rounded-full bg-background"- variant="none"+ className="size-8 rounded-md"+ variant="ghost"+ size="none"onClick={() => setDeleteBookmarkDialogOpen(true)}>- <Trash2 />+ <Trash2 size={18} strokeWidth={1.5} /></Button></TooltipTrigger><TooltipContent side="bottom">{t("actions.delete")}</TooltipContent>diff --git a/apps/web/components/dashboard/preview/AttachmentBox.tsx b/apps/web/components/dashboard/preview/AttachmentBox.tsxindex 654f3211..d8aa4771 100644--- a/apps/web/components/dashboard/preview/AttachmentBox.tsx+++ b/apps/web/components/dashboard/preview/AttachmentBox.tsx@@ -12,7 +12,14 @@ import { toast } from "@/components/ui/sonner";import { ASSET_TYPE_TO_ICON } from "@/lib/attachments";import useUpload from "@/lib/hooks/upload-file";import { useTranslation } from "@/lib/i18n/client";-import { ChevronsDownUp, Download, Pencil, Plus, Trash2 } from "lucide-react";+import {+ ChevronsDownUp,+ Download,+ ImagePlus,+ Paperclip,+ Pencil,+ Trash2,+} from "lucide-react";import {useAttachBookmarkAsset,@@ -91,19 +98,83 @@ export default function AttachmentBox({bookmark.assets.sort((a, b) => a.assetType.localeCompare(b.assetType));+ const hasAssets = bookmark.assets.length > 0;+return (- <Collapsible>- <CollapsibleTrigger className="flex w-full items-center justify-between gap-2 text-sm text-gray-400">+ <Collapsible defaultOpen={true}>+ <div className="flex w-full items-center justify-between gap-2 text-xs font-medium uppercase tracking-wide text-muted-foreground">{t("common.attachments")}- <ChevronsDownUp className="size-4" />- </CollapsibleTrigger>- <CollapsibleContent className="flex flex-col gap-1 py-2 text-sm">+ <div className="flex items-center gap-1">+ {!readOnly && (+ <>+ {!bookmark.assets.some(+ (asset) => asset.assetType == "bannerImage",+ ) &&+ bookmark.content.type != BookmarkTypes.ASSET && (+ <FilePickerButton+ title="Attach a Banner"+ loading={isAttaching}+ accept=".jgp,.JPG,.jpeg,.png,.webp"+ multiple={false}+ variant="none"+ size="none"+ className="rounded-md p-1 hover:text-foreground"+ onFileSelect={(file) =>+ uploadAsset(file, {+ onSuccess: (resp) => {+ attachAsset({+ bookmarkId: bookmark.id,+ asset: {+ id: resp.assetId,+ assetType: "bannerImage",+ },+ });+ },+ })+ }+ >+ <ImagePlus className="size-3.5" strokeWidth={1.5} />+ </FilePickerButton>+ )}+ <FilePickerButton+ title="Upload File"+ loading={isAttaching}+ multiple={false}+ variant="none"+ size="none"+ className="rounded-md p-1 hover:text-foreground"+ onFileSelect={(file) =>+ uploadAsset(file, {+ onSuccess: (resp) => {+ attachAsset({+ bookmarkId: bookmark.id,+ asset: {+ id: resp.assetId,+ assetType: "userUploaded",+ },+ });+ },+ })+ }+ >+ <Paperclip className="size-3.5" strokeWidth={1.5} />+ </FilePickerButton>+ </>+ )}+ {hasAssets && (+ <CollapsibleTrigger>+ <ChevronsDownUp className="size-4" />+ </CollapsibleTrigger>+ )}+ </div>+ </div>+ <CollapsibleContent className="flex flex-col gap-1 py-3 text-sm">{bookmark.assets.map((asset) => (<div key={asset.id} className="flex items-center justify-between"><Linktarget="_blank"href={getAssetUrl(asset.id)}- className="flex items-center gap-1"+ className="flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground"prefetch={false}>{ASSET_TYPE_TO_ICON[asset.assetType]}@@ -113,12 +184,12 @@ export default function AttachmentBox({: humanFriendlyNameForAssertType(asset.assetType)}</p></Link>- <div className="flex gap-2">+ <div className="flex gap-1 text-muted-foreground"><Linktitle="Download"target="_blank"href={getAssetUrl(asset.id)}- className="flex items-center gap-1"+ className="flex items-center gap-1 rounded-md p-1 hover:text-foreground"download={asset.assetType === "userUploaded" && asset.fileName? asset.fileName@@ -126,7 +197,7 @@ export default function AttachmentBox({}prefetch={false}>- <Download className="size-4" />+ <Download className="size-3.5" strokeWidth={1.5} /></Link>{!readOnly &&isAllowedToAttachAsset(asset.assetType) &&@@ -138,7 +209,7 @@ export default function AttachmentBox({multiple={false}variant="none"size="none"- className="flex items-center gap-2"+ className="flex items-center gap-2 rounded-md p-1 hover:text-foreground"onFileSelect={(file) =>uploadAsset(file, {onSuccess: (resp) => {@@ -151,7 +222,7 @@ export default function AttachmentBox({})}>- <Pencil className="size-4" />+ <Pencil className="size-3.5" strokeWidth={1.5} /></FilePickerButton>)}{!readOnly && isAllowedToDetachAsset(asset.assetType) && (@@ -174,68 +245,26 @@ export default function AttachmentBox({</ActionButton>)}>- <Button variant="none" size="none" title="Delete">- <Trash2 className="size-4" />+ <Button+ variant="none"+ size="none"+ title="Delete"+ className="rounded-md p-1 hover:text-foreground"+ >+ <Trash2 className="size-3.5" strokeWidth={1.5} /></Button></ActionConfirmingDialog>)}</div></div>))}- {!readOnly &&- !bookmark.assets.some((asset) => asset.assetType == "bannerImage") &&- bookmark.content.type != BookmarkTypes.ASSET && (- <FilePickerButton- title="Attach a Banner"- loading={isAttaching}- accept=".jgp,.JPG,.jpeg,.png,.webp"- multiple={false}- variant="ghost"- size="none"- className="flex w-full items-center justify-center gap-2"- onFileSelect={(file) =>- uploadAsset(file, {- onSuccess: (resp) => {- attachAsset({- bookmarkId: bookmark.id,- asset: {- id: resp.assetId,- assetType: "bannerImage",- },- });- },- })- }- >- <Plus className="size-4" />- Attach a Banner- </FilePickerButton>- )}- {!readOnly && (- <FilePickerButton- title="Upload File"- loading={isAttaching}- multiple={false}- variant="ghost"- size="none"- className="flex w-full items-center justify-center gap-2"- onFileSelect={(file) =>- uploadAsset(file, {- onSuccess: (resp) => {- attachAsset({- bookmarkId: bookmark.id,- asset: {- id: resp.assetId,- assetType: "userUploaded",- },- });- },- })- }- >- <Plus className="size-4" />- Upload File- </FilePickerButton>+ {!hasAssets && readOnly && (+ <p className="py-1 text-xs text-muted-foreground">No attachments</p>+ )}+ {!hasAssets && !readOnly && (+ <p className="py-1 text-xs text-muted-foreground">+ No attachments yet+ </p>)}</CollapsibleContent></Collapsible>diff --git a/apps/web/components/dashboard/preview/BookmarkPreview.tsx b/apps/web/components/dashboard/preview/BookmarkPreview.tsxindex 6f41a3b1..cf26be19 100644--- a/apps/web/components/dashboard/preview/BookmarkPreview.tsx+++ b/apps/web/components/dashboard/preview/BookmarkPreview.tsx@@ -59,8 +59,8 @@ function CreationTime({ createdAt }: { createdAt: Date }) {return (<Tooltip delayDuration={0}><TooltipTrigger asChild>- <span className="flex w-fit gap-2">- <CalendarDays /> {fromNow}+ <span className="flex w-fit items-center gap-2 text-sm text-muted-foreground">+ <CalendarDays size={16} /> {fromNow}</span></TooltipTrigger><TooltipPortal>@@ -71,18 +71,18 @@ function CreationTime({ createdAt }: { createdAt: Date }) {}function BookmarkMetadata({ bookmark }: { bookmark: ZBookmark }) {- if (bookmark.content.type !== BookmarkTypes.LINK) {- return null;- }-- const { author, publisher, datePublished } = bookmark.content;-- if (!author && !publisher && !datePublished) {- return null;- }+ let { author, publisher, datePublished } =+ bookmark.content.type !== BookmarkTypes.LINK+ ? {+ author: null,+ publisher: null,+ datePublished: null,+ }+ : bookmark.content;return (<div className="flex flex-col gap-2">+ <CreationTime createdAt={bookmark.createdAt} />{author && (<div className="flex w-fit items-center gap-2 text-sm text-muted-foreground"><User size={16} />@@ -123,6 +123,7 @@ export default function BookmarkPreview({}: {bookmarkId: string;initialData?: ZBookmark;+ onClose?: () => void;}) {const api = useTRPC();const { t } = useTranslation();@@ -181,38 +182,43 @@ export default function BookmarkPreview({);const detailsSection = (- <div className="flex flex-col gap-4">- <div className="flex w-full flex-col items-center justify-center gap-y-2">- <div className="flex w-full items-center justify-center gap-2">- <p className="line-clamp-2 text-ellipsis break-words text-lg">- {title === undefined || title === "" ? "Untitled" : title}- </p>- </div>+ <div className="flex flex-col gap-5">+ <div className="flex flex-col gap-1">+ <p className="line-clamp-2 text-ellipsis break-words text-lg font-medium">+ {!title ? "Untitled" : title}+ </p>{sourceUrl && (<Linkhref={sourceUrl}target="_blank"- className="flex items-center gap-2 text-gray-400"+ className="flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground">+ <ExternalLink className="size-3" /><span>{t("preview.view_original")}</span>- <ExternalLink /></Link>)}- <Separator /></div>- <CreationTime createdAt={bookmark.createdAt} />+ <Separator /><BookmarkMetadata bookmark={bookmark} /><SummarizeBookmarkArea bookmark={bookmark} readOnly={!isOwner} />- <div className="flex items-center gap-4">- <p className="text-sm text-gray-400">{t("common.tags")}</p>+ <Separator />+ <div className="flex flex-col gap-1.5">+ <p className="text-xs font-medium uppercase tracking-wide text-muted-foreground">+ {t("common.tags")}+ </p><BookmarkTagsEditor bookmark={bookmark} disabled={!isOwner} /></div>- <div className="flex gap-4">- <p className="pt-2 text-sm text-gray-400">{t("common.note")}</p>+ <Separator />+ <div className="flex flex-col gap-1.5">+ <p className="text-xs font-medium uppercase tracking-wide text-muted-foreground">+ {t("common.note")}+ </p><NoteEditor bookmark={bookmark} disabled={!isOwner} /></div>+ <Separator /><AttachmentBox bookmark={bookmark} readOnly={!isOwner} /><HighlightsBox bookmarkId={bookmark.id} readOnly={!isOwner} />+ <Separator />{isOwner && <ActionBar bookmark={bookmark} />}</div>);@@ -220,37 +226,45 @@ export default function BookmarkPreview({return (<>{/* Render original layout for wide screens */}- <div className="hidden h-full grid-cols-3 overflow-hidden bg-background lg:grid">- <div className="col-span-2 h-full w-full overflow-auto p-2">- {contentSection}- </div>- <div className="flex flex-col gap-4 overflow-auto bg-accent p-4">- {detailsSection}+ <div className="hidden h-full flex-col overflow-hidden bg-background lg:flex">+ <div className="grid min-h-0 flex-1 grid-cols-3">+ <div className="col-span-2 h-full w-full overflow-auto px-4 py-4">+ {contentSection}+ </div>+ <div className="flex flex-col gap-3 overflow-auto border-l bg-muted/40 p-5">+ {detailsSection}+ </div></div></div>{/* Render tabbed layout for narrow/vertical screens */}- <Tabs- value={activeTab}- onValueChange={setActiveTab}- className="flex h-full w-full flex-col overflow-hidden lg:hidden"- >- <TabsList className="sticky top-0 z-10 grid h-auto w-full grid-cols-2">- <TabsTrigger value="content">{t("preview.tabs.content")}</TabsTrigger>- <TabsTrigger value="details">{t("preview.tabs.details")}</TabsTrigger>- </TabsList>- <TabsContent- value="content"- className="h-full flex-1 overflow-hidden overflow-y-auto bg-background p-2 data-[state=inactive]:hidden"- >- {contentSection}- </TabsContent>- <TabsContent- value="details"- className="h-full overflow-y-auto bg-accent p-4 data-[state=inactive]:hidden"+ <div className="flex h-full w-full flex-col overflow-hidden lg:hidden">+ <Tabs+ value={activeTab}+ onValueChange={setActiveTab}+ className="flex min-h-0 flex-1 flex-col overflow-hidden">- {detailsSection}- </TabsContent>- </Tabs>+ <TabsList className="z-10 mx-4 mt-2 grid w-auto grid-cols-2">+ <TabsTrigger value="content">+ {t("preview.tabs.content")}+ </TabsTrigger>+ <TabsTrigger value="details">+ {t("preview.tabs.details")}+ </TabsTrigger>+ </TabsList>+ <TabsContent+ value="content"+ className="h-full flex-1 overflow-hidden overflow-y-auto bg-background px-4 py-3 data-[state=inactive]:hidden"+ >+ {contentSection}+ </TabsContent>+ <TabsContent+ value="details"+ className="h-full overflow-y-auto bg-background px-4 py-3 data-[state=inactive]:hidden"+ >+ {detailsSection}+ </TabsContent>+ </Tabs>+ </div></>);}diff --git a/apps/web/components/dashboard/preview/HighlightsBox.tsx b/apps/web/components/dashboard/preview/HighlightsBox.tsxindex e8503fd9..495eb8cd 100644--- a/apps/web/components/dashboard/preview/HighlightsBox.tsx+++ b/apps/web/components/dashboard/preview/HighlightsBox.tsx@@ -33,7 +33,7 @@ export default function HighlightsBox({return (<Collapsible defaultOpen={true}>- <CollapsibleTrigger className="flex w-full items-center justify-between gap-2 text-sm text-gray-400">+ <CollapsibleTrigger className="flex w-full items-center justify-between gap-2 text-xs font-medium uppercase tracking-wide text-muted-foreground">{t("common.highlights")}<ChevronsDownUp className="size-4" /></CollapsibleTrigger>diff --git a/apps/web/components/dashboard/preview/LinkContentSection.tsx b/apps/web/components/dashboard/preview/LinkContentSection.tsxindex c8d2c6be..29bd9500 100644--- a/apps/web/components/dashboard/preview/LinkContentSection.tsx+++ b/apps/web/components/dashboard/preview/LinkContentSection.tsx@@ -147,9 +147,9 @@ export default function LinkContentSection({);} else if (section === "cached") {content = (- <div className="h-full w-full overflow-y-auto overflow-x-hidden px-3 sm:px-4">+ <div className="h-full w-full overflow-y-auto overflow-x-hidden px-3 sm:px-6"><ReaderView- className="mx-auto"+ className="mx-auto max-w-3xl"style={{fontFamily: READER_FONT_FAMILIES[settings.fontFamily],fontSize: `${settings.fontSize}px`,@@ -171,8 +171,8 @@ export default function LinkContentSection({}return (- <div className="flex h-full w-full min-w-0 flex-col items-center gap-2 overflow-hidden">- <div className="flex items-center gap-2">+ <div className="flex h-full w-full min-w-0 flex-col items-center overflow-hidden">+ <div className="flex w-full items-center justify-center gap-2 border-b px-3 py-1.5"><Select onValueChange={setSection} value={section}><SelectTrigger className="w-fit"><span className="mr-2">diff --git a/apps/web/components/dashboard/preview/NoteEditor.tsx b/apps/web/components/dashboard/preview/NoteEditor.tsxindex 86807569..2f3e3e7e 100644--- a/apps/web/components/dashboard/preview/NoteEditor.tsx+++ b/apps/web/components/dashboard/preview/NoteEditor.tsx@@ -30,7 +30,7 @@ export function NoteEditor({return (<Textarea- className="h-44 w-full overflow-auto rounded bg-background p-2 text-sm text-gray-400 dark:text-gray-300"+ className="min-h-[5rem] w-full resize-y overflow-auto rounded-md bg-background p-2.5 text-sm text-foreground placeholder:text-muted-foreground"defaultValue={bookmark.note ?? ""}disabled={demoMode || disabled}placeholder="Write some notes ..."diff --git a/apps/web/components/dashboard/preview/TextContentSection.tsx b/apps/web/components/dashboard/preview/TextContentSection.tsxindex a4510698..1342b9cf 100644--- a/apps/web/components/dashboard/preview/TextContentSection.tsx+++ b/apps/web/components/dashboard/preview/TextContentSection.tsx@@ -28,9 +28,11 @@ export function TextContentSection({ bookmark }: { bookmark: ZBookmark }) {/></div>)}- <BookmarkMarkdownComponent>- {bookmark as ZBookmarkTypeText}- </BookmarkMarkdownComponent>+ <div className="mx-auto max-w-3xl px-4 py-4">+ <BookmarkMarkdownComponent>+ {bookmark as ZBookmarkTypeText}+ </BookmarkMarkdownComponent>+ </div></ScrollArea>);}