SHA256
UI: полировка после обхода – аватары каналов одной формы, аватары без кольца на краю экрана
- Список каналов: аватары – скруглённый квадрат, как в ленте и шапке канала (люди – круг). - Создание канала и редактирование профиля: аватар без стеклянного кольца, которое вылезало за край. - Ответ на запись канала обращается к каналу по названию («Ответьте Утренние истины…»).
This commit is contained in:
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
client.version=1.18.8
|
client.version=1.18.9
|
||||||
server.version=1.14.0
|
server.version=1.14.0
|
||||||
|
|||||||
+1
-1
@@ -39,7 +39,7 @@
|
|||||||
}());
|
}());
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
window.__SHINE_BUILD_HASH__ = '20261012094500';
|
window.__SHINE_BUILD_HASH__ = '20261012094800';
|
||||||
window.__SHINE_CLIENT_VERSION__ = '1.2.10';
|
window.__SHINE_CLIENT_VERSION__ = '1.2.10';
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ function renderAvatarPreview(slot, avatar, title) {
|
|||||||
avatar,
|
avatar,
|
||||||
authorLogin: state.session.login,
|
authorLogin: state.session.login,
|
||||||
size: 'xl',
|
size: 'xl',
|
||||||
className: 'channel-profile-avatar',
|
className: 'channel-profile-avatar avatar-plain',
|
||||||
title: label,
|
title: label,
|
||||||
alt: 'Аватар канала',
|
alt: 'Аватар канала',
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2072,6 +2072,13 @@ export function render({ navigate, route, chrome }) {
|
|||||||
}
|
}
|
||||||
return item;
|
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 } = {}) => {
|
replyEditorOpener = (node, { attach = false } = {}) => {
|
||||||
if (!node || disposed) return;
|
if (!node || disposed) return;
|
||||||
const path = [];
|
const path = [];
|
||||||
@@ -2081,7 +2088,7 @@ export function render({ navigate, route, chrome }) {
|
|||||||
id: 'thread-reply-modal',
|
id: 'thread-reply-modal',
|
||||||
title: 'Ответ',
|
title: 'Ответ',
|
||||||
submitLabel: 'Ответить',
|
submitLabel: 'Ответить',
|
||||||
placeholder: `Ответить ${node.authorLogin || ''}…`,
|
placeholder: `Ответить ${replyTargetName(node)}…`,
|
||||||
context: { chain },
|
context: { chain },
|
||||||
key: `thread-reply:${nodeKey(node)}`,
|
key: `thread-reply:${nodeKey(node)}`,
|
||||||
openAttachOnStart: attach,
|
openAttachOnStart: attach,
|
||||||
@@ -2104,7 +2111,7 @@ export function render({ navigate, route, chrome }) {
|
|||||||
const field = document.createElement('button');
|
const field = document.createElement('button');
|
||||||
field.type = 'button';
|
field.type = 'button';
|
||||||
field.className = 'thread-reply-bar__field';
|
field.className = 'thread-reply-bar__field';
|
||||||
field.textContent = `Ответьте ${focus.authorLogin || ''}…`;
|
field.textContent = `Ответьте ${replyTargetName(focus)}…`;
|
||||||
field.addEventListener('click', () => replyEditorOpener(focus));
|
field.addEventListener('click', () => replyEditorOpener(focus));
|
||||||
const attach = document.createElement('button');
|
const attach = document.createElement('button');
|
||||||
attach.type = 'button';
|
attach.type = 'button';
|
||||||
|
|||||||
@@ -241,7 +241,8 @@ export function render({ navigate, chrome }) {
|
|||||||
? { ar: String(currentAvatar.txId || currentAvatar.ar || '').trim(), sha256Hex: String(currentAvatar?.sha256Hex || '').trim().toLowerCase() }
|
? { ar: String(currentAvatar.txId || currentAvatar.ar || '').trim(), sha256Hex: String(currentAvatar?.sha256Hex || '').trim().toLowerCase() }
|
||||||
: null,
|
: null,
|
||||||
size: 'xl',
|
size: 'xl',
|
||||||
className: 'profile-avatar',
|
// Как в карточке профиля: без стеклянного кольца, которое вылезало за край экрана.
|
||||||
|
className: 'profile-avatar avatar-plain',
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -104,7 +104,8 @@
|
|||||||
height: 48px;
|
height: 48px;
|
||||||
min-width: 48px;
|
min-width: 48px;
|
||||||
min-height: 48px;
|
min-height: 48px;
|
||||||
border-radius: 50%;
|
/* Каналы – скруглённый квадрат, как в ленте и шапке канала; люди – круг. */
|
||||||
|
border-radius: 28%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user