UI: компактная тёмная плитка автора и корректный переход в профиль

This commit is contained in:
AidarKC 2026-05-19 14:18:20 +03:00
parent 90d10086d7
commit 3e62a2a01c
3 changed files with 17 additions and 13 deletions

View File

@ -1,2 +1,2 @@
client.version=1.2.67 client.version=1.2.68
server.version=1.2.61 server.version=1.2.62

View File

@ -661,7 +661,7 @@ function renderPostCard(post, {
event.stopPropagation(); event.stopPropagation();
const cleanLogin = String(post.authorLogin || '').trim(); const cleanLogin = String(post.authorLogin || '').trim();
if (!cleanLogin) return; if (!cleanLogin) return;
navigate(`user/${encodeRoutePart(cleanLogin)}/channel-view`); navigate(`user/${encodeRoutePart(cleanLogin)}`);
}); });
const body = document.createElement('p'); const body = document.createElement('p');

View File

@ -2172,32 +2172,36 @@ textarea.input {
} }
.channel-message-author-tile { .channel-message-author-tile {
appearance: none;
-webkit-appearance: none;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 12px; gap: 12px;
width: 100%; width: 100%;
padding: 10px 12px; padding: 8px 10px;
border-radius: 8px; border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.12);
background: rgba(255, 255, 255, 0.04); background: rgba(19, 24, 33, 0.9);
color: #f5f8ff;
text-align: left; text-align: left;
cursor: pointer; cursor: pointer;
min-height: 0;
} }
.channel-message-author-tile:hover { .channel-message-author-tile:hover {
background: rgba(255, 255, 255, 0.08); background: rgba(28, 35, 48, 0.94);
} }
.channel-message-avatar { .channel-message-avatar {
width: 44px; width: 34px;
height: 44px; height: 34px;
min-width: 44px; min-width: 34px;
min-height: 44px; min-height: 34px;
border-radius: 50%; border-radius: 50%;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 17px; font-size: 14px;
font-weight: 700; font-weight: 700;
color: #f4f6ff; color: #f4f6ff;
background: radial-gradient(circle at 30% 30%, #8a73ff, #4f4bda 58%, #3b2b89); background: radial-gradient(circle at 30% 30%, #8a73ff, #4f4bda 58%, #3b2b89);
@ -2210,7 +2214,7 @@ textarea.input {
} }
.channel-message-title { .channel-message-title {
font-size: 20px; font-size: 15px;
color: #f5f8ff; color: #f5f8ff;
} }
@ -2227,7 +2231,7 @@ textarea.input {
} }
.channel-message-time { .channel-message-time {
font-size: 12px; font-size: 11px;
color: rgba(255, 255, 255, 0.48); color: rgba(255, 255, 255, 0.48);
} }