Skip to content

Commit 621986d

Browse files
committed
fix: mobile row layout
1 parent 86bc59e commit 621986d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/components/url-record-row.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,18 @@ export function MobileRow({
4242
href={shortUrl}
4343
target="_blank"
4444
rel="noopener noreferrer"
45-
className="text-blue-400 hover:underline font-mono"
45+
className="text-blue-400 flex-1 max-sm:hidden hover:underline font-mono"
4646
>
4747
{shortUrl}
4848
</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}
56+
</a>
4957
<Button variant="ghost" size="icon" onClick={() => onCopy(url)}>
5058
<Copy />
5159
</Button>
@@ -54,7 +62,7 @@ export function MobileRow({
5462
<ArrowRight className="text-blue-400" />
5563
<a
5664
href={url.original_url}
57-
className="text-blue-400 hover:underline font-mono truncate"
65+
className="text-blue-400 flex-1 hover:underline font-mono truncate"
5866
title={url.original_url}
5967
target="_blank"
6068
rel="noopener noreferrer"

0 commit comments

Comments
 (0)