feat: share update
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user