feat: share update

This commit is contained in:
2026-08-16 21:12:56 +07:00 Unverified
parent 6b162c6eff
commit d7f1e3ea25
5 changed files with 7 additions and 14 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ import {
CopyShareActions,
DeleteCommentButton,
DeleteShareButton,
} from "@/app/share/[id]/share-client";
} from "@/app/share/[id]/client";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Button } from "@/components/ui/button";
import {
@@ -176,7 +176,7 @@ export default async function SharedTextPage({
<CardContent className="p-0">
<pre
id="share-content"
className="max-h-[72vh] overflow-auto whitespace-pre-wrap break-words p-5 font-mono text-sm leading-6 sm:p-7"
className="max-h-[72vh] overflow-auto whitespace-pre-wrap wrap-break-word p-5 font-mono text-sm leading-6 sm:p-7"
>{share.content}</pre>
</CardContent>
</Card>
@@ -246,7 +246,7 @@ export default async function SharedTextPage({
/>
)}
</div>
<p className="mt-3 whitespace-pre-wrap break-words text-sm leading-6">
<p className="mt-3 whitespace-pre-wrap wrap-break-word text-sm leading-6">
{comment.body}
</p>
</div>