Skip to content

Commit f319fd8

Browse files
authored
fix: mobile row layout (#11)
1 parent 86bc59e commit f319fd8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/url-record-row.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ 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 hover:underline font-mono"
4646
>
47-
{shortUrl}
47+
<span className="max-sm:hidden">{shortUrl}</span>
48+
<span className="sm:hidden">/{url.short_code}</span>
4849
</a>
4950
<Button variant="ghost" size="icon" onClick={() => onCopy(url)}>
5051
<Copy />
@@ -54,7 +55,7 @@ export function MobileRow({
5455
<ArrowRight className="text-blue-400" />
5556
<a
5657
href={url.original_url}
57-
className="text-blue-400 hover:underline font-mono truncate"
58+
className="text-blue-400 flex-1 hover:underline font-mono truncate"
5859
title={url.original_url}
5960
target="_blank"
6061
rel="noopener noreferrer"

0 commit comments

Comments
 (0)