style: tighter cards, center-aligned text next to avatar

This commit is contained in:
2026-08-11 09:16:42 +00:00
parent 766bfaf2f9
commit b8ef26ba8d
+11 -12
View File
@@ -79,15 +79,15 @@ const links: FriendLink[] = [
.links-grid { .links-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 0.85rem; gap: 0.75rem;
margin-bottom: 2rem; margin-bottom: 2rem;
} }
.link-card { .link-card {
display: flex; display: flex;
align-items: flex-start; align-items: center;
gap: 1rem; gap: 0.85rem;
padding: 1rem 1.25rem; padding: 0.65rem 1rem;
border: 1.5px dashed var(--border); border: 1.5px dashed var(--border);
border-radius: 0.75rem; border-radius: 0.75rem;
background: var(--background); background: var(--background);
@@ -103,8 +103,8 @@ const links: FriendLink[] = [
} }
.link-avatar { .link-avatar {
width: 50px; width: 42px;
height: 50px; height: 42px;
border-radius: 50%; border-radius: 50%;
flex-shrink: 0; flex-shrink: 0;
object-fit: cover; object-fit: cover;
@@ -114,21 +114,20 @@ const links: FriendLink[] = [
.link-info { .link-info {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.25rem; gap: 0.15rem;
min-width: 0; min-width: 0;
justify-content: center;
} }
.link-name { .link-name {
font-weight: 600; font-weight: 600;
font-size: 1.1rem; font-size: 1rem;
line-height: 1.4; line-height: 1.3;
} }
.link-desc { .link-desc {
font-size: 0.88rem; font-size: 0.82rem;
color: var(--muted-foreground); color: var(--muted-foreground);
line-height: 1.4; line-height: 1.3;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;