Skip to content

Commit a0f2c73

Browse files
committed
fix: copilot suggestion
1 parent 621986d commit a0f2c73

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/components/url-record-row.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,10 @@ export function MobileRow({
4242
href={shortUrl}
4343
target="_blank"
4444
rel="noopener noreferrer"
45-
className="text-blue-400 flex-1 max-sm:hidden hover:underline font-mono"
45+
className="text-blue-400 flex-1 hover:underline font-mono"
4646
>
47-
{shortUrl}
48-
</a>
49-
<a
50-
href={shortUrl}
51-
target="_blank"
52-
rel="noopener noreferrer"
53-
className="text-blue-400 flex-1 sm:hidden hover:underline font-mono"
54-
>
55-
/{url.short_code}
47+
<span className="max-sm:hidden">{shortUrl}</span>
48+
<span className="sm:hidden">/{url.short_code}</span>
5649
</a>
5750
<Button variant="ghost" size="icon" onClick={() => onCopy(url)}>
5851
<Copy />

0 commit comments

Comments
 (0)