Skip to content

Commit 04032fe

Browse files
committed
Updated copy text
1 parent 650d648 commit 04032fe

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

src/app/components/CopyText.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,17 @@ export const CopyTextComponent: FC<{
3131
});
3232
}}
3333
>
34-
{hidden && !reveal ? "-".repeat(text.length) : text}
34+
<span
35+
className={cn(
36+
"px-1 py-0.5 rounded-md underline-offset-4",
37+
!reveal ? "blur-sm" : "hover:bg-blue-50 ",
38+
)}
39+
>
40+
{text}
41+
</span>
3542

36-
{hidden && !reveal && isHovering ? (
37-
<span className="absolute left-1/2 top-1/2 -translate-y-1/2 -translate-x-1/2 text-center font-semibold bg-secondary px-2 text-xs">
43+
{hidden && !reveal ? (
44+
<span className="absolute left-1/2 top-1/2 -translate-y-1/2 rounded-full -translate-x-1/2 text-center font-semibold bg-secondary px-2 text-xs">
3845
Click to reveal
3946
</span>
4047
) : null}

src/app/webhooks/[webhookId]/settings/loading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Link from "next/link";
66

77
export default async function WebhookPage() {
88
return (
9-
<div className="container my-10 space-y-10">
9+
<div className="container my-10 space-y-10 pt-20">
1010
<div className="space-y-5">
1111
<div className="flex flex-col md:flex-row text-center md:text-left justify-between items-stretch md:items-start gap-5 md:gap-0">
1212
<div className="self-center space-y-2">

src/app/webhooks/[webhookId]/settings/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ const Logs = async ({
111111
<div className="inline-flex items-center justify-between">
112112
<Label className="font-medium font-poppins">Signing Secret</Label>
113113
<CopyTextComponent
114-
className="cursor-pointer hover:bg-blue-50 px-1 py-0.5 rounded-md underline-offset-4 font-geist-mono hover:text-blue-500 "
114+
className="cursor-pointer font-geist-mono"
115+
// className="cursor-pointer hover:bg-blue-50 px-1 py-0.5 rounded-md underline-offset-4 font-geist-mono hover:text-blue-500 "
115116
text={webhook.secret}
116117
hidden
117118
/>

0 commit comments

Comments
 (0)