UI: уменьшение splash logo и правки diary preview

This commit is contained in:
AidarKC
2026-08-11 17:03:46 +04:00
parent bc11b60147
commit ee5d86003b
7 changed files with 22 additions and 18 deletions
+4 -1
View File
@@ -1022,10 +1022,13 @@ export function render({ navigate, route, chrome }) {
const viewportHeight = Math.max(viewport?.height || 0, window.innerHeight || 0);
const viewportShrunk = baseViewportHeight - viewportHeight > 120;
const keyboardInset = viewportShrunk
? Math.max(0, (window.innerHeight || 0) - viewportHeight - Number(viewport?.offsetTop || 0))
? Math.max(0, baseViewportHeight - viewportHeight)
: 0;
setKeyboardInset(keyboardInset);
setChatKeyboardOpen(inputFocused && viewportShrunk);
if (viewportShrunk && window.scrollY !== 0) {
window.scrollTo(0, 0);
}
if (inputFocused) {
window.requestAnimationFrame(() => scrollToLatestMessage(log));
}