feat: share update
This commit is contained in:
@@ -30,12 +30,8 @@ export const metadata: Metadata = {
|
||||
},
|
||||
openGraph: {
|
||||
type: "website",
|
||||
locale: "th_TH",
|
||||
url: siteUrl,
|
||||
siteName: "Erika!",
|
||||
title: "Erika!",
|
||||
description:
|
||||
"แหล่งรวมลิ้งค์ทั้งหมดของช่อง Erika!",
|
||||
images: [
|
||||
{
|
||||
url: "/avatar.webp",
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -10,8 +10,8 @@ import { authOptions } from "@/lib/auth/auth-options";
|
||||
import { getDiscordMemberProfile } from "@/lib/discord/discord";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Share | Erika!",
|
||||
description: "แชร์ข้อความและไฟล์ .txt ผ่านลิงก์สั้น",
|
||||
title: "Share",
|
||||
description: "แชร์ข้อความและไฟล์ผ่านลิงก์สั้น",
|
||||
};
|
||||
|
||||
export default async function ShareLayout({ children }: { children: React.ReactNode }) {
|
||||
@@ -32,7 +32,7 @@ export default async function ShareLayout({ children }: { children: React.ReactN
|
||||
</Link>
|
||||
</Button>
|
||||
<Link href="/share" className="font-mono text-sm font-semibold">
|
||||
Erika / Share
|
||||
Share
|
||||
</Link>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
|
||||
+1
-4
@@ -22,14 +22,11 @@ export default async function SharePage() {
|
||||
return (
|
||||
<div className="flex flex-col gap-6">
|
||||
<div className="max-w-2xl">
|
||||
<p className="mb-2 font-mono text-xs uppercase tracking-[0.18em] text-muted-foreground">
|
||||
New public paste
|
||||
</p>
|
||||
<h1 className="text-3xl font-bold tracking-tight sm:text-4xl">
|
||||
วางข้อความ แล้วส่งลิงก์ต่อ
|
||||
</h1>
|
||||
<p className="mt-3 text-sm leading-6 text-muted-foreground sm:text-base">
|
||||
เนื้อหาหลักจะถูกเก็บตามที่พิมพ์ทุกตัวอักษร คนที่มีลิงก์สามารถเปิดอ่านได้โดยไม่ต้องเข้าสู่ระบบ
|
||||
คนที่มีลิงก์สามารถเปิดอ่านได้
|
||||
</p>
|
||||
</div>
|
||||
<ShareUploadClient />
|
||||
|
||||
Reference in New Issue
Block a user