Adds markdown formatting. Layout and style improvements.

This commit is contained in:
2025-07-23 15:37:44 -07:00
parent 8533f63a22
commit 4c2ebdc292
11 changed files with 88 additions and 27 deletions

View File

@@ -3,6 +3,7 @@
import { pb } from "@/lib/pocketbase";
import type { AnyDocument, Secret } from "@/lib/types";
import { useState } from "react";
import { DocumentLink } from "../DocumentLink";
/**
* Renders a secret row with a discovered checkbox and secret text.
@@ -70,7 +71,12 @@ export const SecretToggleRow = ({
aria-label="Discovered"
disabled={loading}
/>
{secret.data.text}
<DocumentLink
childDocId={secret.id}
className="!no-underline text-slate-100 hover:underline hover:text-violet-400"
>
{secret.data.text}
</DocumentLink>
</div>
);
};