Исправил баг UI: PWA и просмотр аватаров

This commit is contained in:
AidarKC
2026-11-10 14:09:54 +03:00
parent 9c30b33b39
commit 003cc942d8
14 changed files with 252 additions and 28 deletions
+2
View File
@@ -36,7 +36,9 @@
right: 0;
bottom: calc(var(--toolbar-height, 78px) + var(--composer-height, 0px));
z-index: var(--z-shell-content);
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior: contain;
padding: 0 16px 24px;
}
+51
View File
@@ -291,3 +291,54 @@
.avatar.avatar-image.avatar-plain > .avatar-fallback,
.avatar.avatar-image.avatar-plain > .avatar-photo { width: 100%; height: 100%; box-shadow: none; text-shadow: none; }
.avatar.avatar-image.avatar-plain > .avatar-fallback { background: var(--surface-selected); color: var(--accent); }
/* Просмотр фото профиля: без повторной загрузки картинки и без масштабирования PWA. */
.user-profile-avatar-trigger {
display: grid;
place-items: center;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
border: 0;
border-radius: 50%;
background: transparent;
color: inherit;
cursor: zoom-in;
touch-action: manipulation;
}
.user-profile-avatar-trigger:focus-visible {
outline: 2px solid var(--focus-ring);
outline-offset: 6px;
}
.profile-avatar-preview {
position: fixed;
inset: 0;
z-index: 140;
display: grid;
place-items: center;
padding: 20px;
background: rgb(0 0 0 / 90%);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
touch-action: none;
}
.profile-avatar-preview__image {
display: grid;
place-items: center;
width: min(82vw, 430px, calc(100dvh - 96px));
aspect-ratio: 1;
padding: 0;
border: 0;
border-radius: 50%;
background: transparent;
cursor: zoom-out;
}
.profile-avatar-preview__image > .avatar.avatar-image {
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
font-size: clamp(44px, 22vw, 128px);
}
.profile-avatar-preview__image:focus-visible { outline: 2px solid #fff; outline-offset: 8px; }
+2
View File
@@ -135,6 +135,8 @@ body {
min-height: 100%;
overflow: hidden;
overscroll-behavior: none;
/* Прокрутка остаётся внутри экранов, а pinch/double-tap не масштабирует всю PWA. */
touch-action: pan-x pan-y;
background: var(--background);
color: var(--text);
font-family: var(--font-main);