Skip to content

Commit b591322

Browse files
committed
ui fixes: make current url link be even more compact
1 parent d235b7e commit b591322

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

components/PostText.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function PostText(props: Props) {
6161
if (url && normalizeUrl(url) === normalizeUrl(currentUrl.value)) {
6262
content.push({
6363
text: "",
64-
component: <span className="text-gray-500 italic">[current url]</span>
64+
component: <span className="text-gray-400 text-xs">[]</span>
6565
});
6666
continue;
6767
}

components/post/CompactPost.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ function ExpandButton({ isExpanded, post }: { isExpanded: Signal<boolean>, post:
2121
e.stopPropagation();
2222
isExpanded.value = !isExpanded.value;
2323
}}
24-
className="text-gray-500 hover:text-gray-700 dark:hover:text-gray-300"
24+
className="text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 font-mono"
2525
>
26-
<span className="flex items-center gap-1">
26+
<span className="flex items-center gap-0.5 text-xs">
2727
{isExpanded.value ? "[-]" : "[+]"}
2828
<Icon name="comment" className="w-3 h-3" />
2929
{post.replyCount}
@@ -52,12 +52,12 @@ export function CompactPost({
5252
<div className="flex items-start gap-2 py-1 px-3 hover:bg-gray-50 dark:hover:bg-gray-800">
5353
<div className="flex-1 min-w-0">
5454
{/* Post metadata row */}
55-
<div className="flex items-center gap-x-1.5 text-sm flex-wrap text-gray-500">
55+
<div className="flex items-center gap-x-1.5 flex-wrap text-gray-500">
5656
<a
5757
href={postAuthorUrl}
5858
target="_blank"
5959
rel="noopener noreferrer"
60-
className="hover:underline font-medium text-gray-800 dark:text-gray-600 truncate max-w-[120px]"
60+
className="hover:underline font-medium text-gray-800 dark:text-gray-600 truncate max-w-[100px]"
6161
title={post.author.handle}
6262
>
6363
@{post.author.handle}

components/post/PostReplies.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ export function PostReplies({
9191
)}
9292
</>
9393
);
94-
}
94+
}

0 commit comments

Comments
 (0)