Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

bug fix

daniel31x136c006bb748df
diff --git a/components/Preservation/PreservationContent.tsx b/components/Preservation/PreservationContent.tsx
index e48d8c7d..9c5af00b 100644
--- a/components/Preservation/PreservationContent.tsx
+++ b/components/Preservation/PreservationContent.tsx
@@ -183,7 +183,12 @@ export const PreservationContent: React.FC<Props> = ({ link, format }) => {
{!imageLoaded && (
<PreservationSkeleton className="max-w-screen-lg" />
)}
- <div className={`h-screen overflow-auto flex items-start`}>
+ <div
+ className={clsx(
+ "overflow-auto flex items-start",
+ imageLoaded && "h-screen"
+ )}
+ >
<img
alt=""
src={`/api/v1/archives/${link.id}?format=${currentFormat}`}
@@ -198,7 +203,7 @@ export const PreservationContent: React.FC<Props> = ({ link, format }) => {
"items-center"
);
}
- }, 0);
+ }, 1);
}}
loading="eager"
/>
@@ -212,7 +217,7 @@ export const PreservationContent: React.FC<Props> = ({ link, format }) => {
};
return (
- <div className="relative bg-base-200 h-screen">
+ <div className="relative bg-base-200">
{link.url && potentialTabs.length > 1 && (
<Tab
tabs={potentialTabs.map((tab) => ({
diff --git a/components/Skeletons.tsx b/components/Skeletons.tsx
index 43c5ed03..fd035146 100644
--- a/components/Skeletons.tsx
+++ b/components/Skeletons.tsx
@@ -3,7 +3,7 @@ import clsx from "clsx";
export const PreservationSkeleton = ({ className }: { className?: string }) => (
<div
className={clsx(
- "p-5 m-auto w-full flex flex-col items-center gap-5 h-full bg-base-200 justify-center",
+ "p-5 m-auto w-full flex flex-col items-center gap-5 h-screen bg-base-200 justify-center",
className
)}
>