Skip to content

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

minor improvement

daniel31x1369225e064241
diff --git a/components/Preservation/PreservationContent.tsx b/components/Preservation/PreservationContent.tsx
index c0e8f525..406d57ec 100644
--- a/components/Preservation/PreservationContent.tsx
+++ b/components/Preservation/PreservationContent.tsx
@@ -42,7 +42,11 @@ export const PreservationContent: React.FC<Props> = ({
case ArchivedFormat.readability:
return (
<div className="overflow-auto w-full h-full">
- <ReadableView link={link} isExpanded={isExpanded} />
+ <ReadableView
+ link={link}
+ isExpanded={isExpanded}
+ standalone={standalone || false}
+ />
</div>
);
case ArchivedFormat.monolith:
diff --git a/components/Preservation/ReadableView.tsx b/components/Preservation/ReadableView.tsx
index 2de9aa06..74b94aa8 100644
--- a/components/Preservation/ReadableView.tsx
+++ b/components/Preservation/ReadableView.tsx
@@ -28,9 +28,10 @@ import ListItem from "@tiptap/extension-list-item";
type Props = {
link: LinkIncludingShortenedCollectionAndTags;
isExpanded: boolean;
+ standalone: boolean;
};
-export default function ReadableView({ link, isExpanded }: Props) {
+export default function ReadableView({ link, isExpanded, standalone }: Props) {
const { t } = useTranslation();
const [linkContent, setLinkContent] = useState("");
const [isEditing, setIsEditing] = useState(false);
@@ -57,7 +58,11 @@ export default function ReadableView({ link, isExpanded }: Props) {
attributes: {
class: clsx(
"rounded-md focus:outline-none border-neutral-content focus:border-primary border-solid border p-3 overflow-auto duration-100",
- isExpanded ? "h-[calc(100vh-7.25rem)]" : "h-[calc(80vh-10.75rem)]"
+ isExpanded
+ ? "h-[calc(100vh-7.25rem)]"
+ : standalone
+ ? "h-[calc(100vh-10.75rem)]"
+ : "h-[calc(80vh-10.75rem)]"
),
},
},