UI: полировка после обхода – аватары каналов одной формы, аватары без кольца на краю экрана

- Список каналов: аватары – скруглённый квадрат, как в ленте и шапке канала (люди – круг).
- Создание канала и редактирование профиля: аватар без стеклянного кольца, которое вылезало за край.
- Ответ на запись канала обращается к каналу по названию («Ответьте Утренние истины…»).
This commit is contained in:
q
2026-10-12 09:48:46 +03:00
parent 923f281bf6
commit 3edde418a2
6 changed files with 16 additions and 7 deletions
+1 -1
View File
@@ -39,7 +39,7 @@
}());
</script>
<script>
window.__SHINE_BUILD_HASH__ = '20261012094500';
window.__SHINE_BUILD_HASH__ = '20261012094800';
window.__SHINE_CLIENT_VERSION__ = '1.2.10';
</script>
<script>
+1 -1
View File
@@ -46,7 +46,7 @@ function renderAvatarPreview(slot, avatar, title) {
avatar,
authorLogin: state.session.login,
size: 'xl',
className: 'channel-profile-avatar',
className: 'channel-profile-avatar avatar-plain',
title: label,
alt: 'Аватар канала',
});
+9 -2
View File
@@ -2072,6 +2072,13 @@ export function render({ navigate, route, chrome }) {
}
return item;
};
// Запись канала показывается от имени канала – и обращаемся к ней по названию канала.
const replyTargetName = (node) => {
const rootNode = ancestors.length ? ancestors[0] : focus;
const byOwner = Boolean(selector?.channel?.ownerBlockchainName)
&& String(node?.authorBlockchainName || '').toLowerCase() === String(selector.channel.ownerBlockchainName).toLowerCase();
return node === rootNode && byOwner ? title : String(node?.authorLogin || '');
};
replyEditorOpener = (node, { attach = false } = {}) => {
if (!node || disposed) return;
const path = [];
@@ -2081,7 +2088,7 @@ export function render({ navigate, route, chrome }) {
id: 'thread-reply-modal',
title: 'Ответ',
submitLabel: 'Ответить',
placeholder: `Ответить ${node.authorLogin || ''}…`,
placeholder: `Ответить ${replyTargetName(node)}…`,
context: { chain },
key: `thread-reply:${nodeKey(node)}`,
openAttachOnStart: attach,
@@ -2104,7 +2111,7 @@ export function render({ navigate, route, chrome }) {
const field = document.createElement('button');
field.type = 'button';
field.className = 'thread-reply-bar__field';
field.textContent = `Ответьте ${focus.authorLogin || ''}…`;
field.textContent = `Ответьте ${replyTargetName(focus)}…`;
field.addEventListener('click', () => replyEditorOpener(focus));
const attach = document.createElement('button');
attach.type = 'button';
+2 -1
View File
@@ -241,7 +241,8 @@ export function render({ navigate, chrome }) {
? { ar: String(currentAvatar.txId || currentAvatar.ar || '').trim(), sha256Hex: String(currentAvatar?.sha256Hex || '').trim().toLowerCase() }
: null,
size: 'xl',
className: 'profile-avatar',
// Как в карточке профиля: без стеклянного кольца, которое вылезало за край экрана.
className: 'profile-avatar avatar-plain',
}));
}
+2 -1
View File
@@ -104,7 +104,8 @@
height: 48px;
min-width: 48px;
min-height: 48px;
border-radius: 50%;
/* Каналы – скруглённый квадрат, как в ленте и шапке канала; люди – круг. */
border-radius: 28%;
overflow: hidden;
}