Skip to content

Commit 1346fb1

Browse files
ux: remove url copy field, keep only badge preview + copy button
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 84eed7a commit 1346fb1

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

src/components/CertificateCard.tsx

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -569,49 +569,6 @@ export default function CertificateCard({ cert, onReset }: Props) {
569569
</button>
570570
)}
571571

572-
{!showInlineShare && (
573-
<div
574-
style={{
575-
display: 'flex',
576-
alignItems: 'center',
577-
border: '2px solid #0a0a0a',
578-
background: '#FAF6EF',
579-
overflow: 'hidden',
580-
}}
581-
>
582-
<span style={{
583-
fontFamily: `var(--font-courier), 'Courier New', monospace`,
584-
fontSize: '12px',
585-
color: '#5f5f5f',
586-
flex: 1,
587-
padding: '0 12px',
588-
overflow: 'hidden',
589-
textOverflow: 'ellipsis',
590-
whiteSpace: 'nowrap',
591-
}}>
592-
{shareUrl}
593-
</span>
594-
<button
595-
type="button"
596-
onClick={handleCopyLink}
597-
style={{
598-
fontFamily: UI, fontSize: '12px', fontWeight: 700,
599-
flexShrink: 0,
600-
height: '40px',
601-
padding: '0 14px',
602-
background: copied ? '#2a5a2a' : '#0a0a0a',
603-
color: '#fff',
604-
border: 'none',
605-
borderLeft: '2px solid #0a0a0a',
606-
cursor: 'pointer',
607-
letterSpacing: '0.04em',
608-
transition: 'background 0.15s',
609-
}}
610-
>
611-
{copied ? '✓' : 'Copy'}
612-
</button>
613-
</div>
614-
)}
615572

616573
{/* Badge copy */}
617574
{!showInlineShare && (() => {

0 commit comments

Comments
 (0)