Skip to content

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

format

Isaac942ae4af9980
diff --git a/components/Preservation/Preservation.tsx b/components/Preservation/Preservation.tsx
index 0048c3d6..83148815 100644
--- a/components/Preservation/Preservation.tsx
+++ b/components/Preservation/Preservation.tsx
@@ -114,7 +114,7 @@ export default function Preservation({
className={clsx(
"bg-base-200",
!isExpanded &&
- `mx-auto relative p-2 h-full overflow-auto rounded-md sm:rounded-none`,
+ `mx-auto relative p-2 h-full overflow-auto rounded-md sm:rounded-none`,
isExpanded && "fixed inset-0 w-screen h-screen z-[9999]"
)}
style={{
@@ -129,7 +129,7 @@ export default function Preservation({
className={clsx(
"py-1 px-2 cursor-pointer duration-100 rounded-lg font-semibold text-center flex justify-between items-center w-6",
format === ArchivedFormat.readability &&
- "bg-primary bg-opacity-50"
+ "bg-primary bg-opacity-50"
)}
onClick={() => setFormat(ArchivedFormat.readability)}
>
@@ -143,7 +143,7 @@ export default function Preservation({
className={clsx(
"py-1 px-2 cursor-pointer duration-100 rounded-lg font-semibold text-center flex justify-between items-center w-6",
format === ArchivedFormat.monolith &&
- "bg-primary bg-opacity-50"
+ "bg-primary bg-opacity-50"
)}
onClick={() => setFormat(ArchivedFormat.monolith)}
>
@@ -157,9 +157,9 @@ export default function Preservation({
className={clsx(
"py-1 px-2 cursor-pointer duration-100 rounded-lg font-semibold text-center flex justify-between items-center w-6",
format ===
- (link?.image?.endsWith("png")
- ? ArchivedFormat.png
- : ArchivedFormat.jpeg) && "bg-primary bg-opacity-50"
+ (link?.image?.endsWith("png")
+ ? ArchivedFormat.png
+ : ArchivedFormat.jpeg) && "bg-primary bg-opacity-50"
)}
onClick={() =>
setFormat(
@@ -279,29 +279,29 @@ const RenderFormat = ({
const style = isExpanded
? {
- position: "fixed" as const,
- top: 0,
- left: 0,
- width: "100vw",
- height: "100vh",
- zIndex: 9999,
- transitionProperty:
- delayPassed && !shouldReduceMotion
- ? "width, height, top, left"
- : "none",
- }
+ position: "fixed" as const,
+ top: 0,
+ left: 0,
+ width: "100vw",
+ height: "100vh",
+ zIndex: 9999,
+ transitionProperty:
+ delayPassed && !shouldReduceMotion
+ ? "width, height, top, left"
+ : "none",
+ }
: {
- zIndex: 40,
- position: "absolute" as const,
- top: (containerRect?.top ?? 0) + window.scrollY + topPadding,
- left: (containerRect?.left ?? 0) + window.scrollX,
- width: containerRect?.width ?? 0,
- height: containerRect?.height ? containerRect.height - topPadding : 0,
- transitionProperty:
- delayPassed && !shouldReduceMotion
- ? "width, height, top, left"
- : "none",
- };
+ zIndex: 40,
+ position: "absolute" as const,
+ top: (containerRect?.top ?? 0) + window.scrollY + topPadding,
+ left: (containerRect?.left ?? 0) + window.scrollX,
+ width: containerRect?.width ?? 0,
+ height: containerRect?.height ? containerRect.height - topPadding : 0,
+ transitionProperty:
+ delayPassed && !shouldReduceMotion
+ ? "width, height, top, left"
+ : "none",
+ };
return ReactDOM.createPortal(
<div
diff --git a/lib/api/autoTagLink.ts b/lib/api/autoTagLink.ts
index 19917ca6..5973b9a8 100644
--- a/lib/api/autoTagLink.ts
+++ b/lib/api/autoTagLink.ts
@@ -81,7 +81,9 @@ export default async function autoTagLink(
take: 50,
});
- existingTagsNames = existingTags.map((tag) => tag.name.length > 50 ? tag.name.slice(0, 47) + '...' : tag.name);
+ existingTagsNames = existingTags.map((tag) =>
+ tag.name.length > 50 ? tag.name.slice(0, 47) + "..." : tag.name
+ );
}
const promptText = metaDescription || link.textContent?.slice(0, 500) + "...";