Исправить мелкие баги дизайна UI

This commit is contained in:
AidarKC
2026-11-09 09:57:47 +03:00
parent 4068465ee6
commit 34f7faf0a8
7 changed files with 128 additions and 118 deletions
+11
View File
@@ -19,6 +19,17 @@
/* Корневые разделы (Чаты, Каналы, Связи, Уведомления, Профиль) – заголовок по центру, как на всех экранах, но крупнее. */
.topbar--root .topbar__title { font-size: 1.375rem; line-height: 1.75rem; font-weight: 700; letter-spacing: -0.01em; }
/* В списках чатов и каналов фильтр встроен в заголовок слева.
* Остальные разделы сохраняют центрированный TopBar. */
.topbar--section-filter { grid-template-columns: minmax(0, 1fr) auto; }
.topbar--section-filter .topbar__left { display: none; }
.topbar--section-filter .topbar__center { justify-content: flex-start; }
.topbar-filter-title { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; min-height: 44px; padding: 0 6px; border: 0; border-radius: 12px; background: transparent; color: var(--text-primary); font: inherit; font-size: 1.125rem; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; text-align: left; cursor: pointer; }
.topbar-filter-title__caption { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-filter-title__chevron { display: inline-flex; flex: 0 0 16px; width: 16px; color: var(--text-secondary); }
.topbar-filter-title__chevron svg { display: block; width: 16px; height: 16px; }
/* Шапка-визитка: аватар и две строки слева (канал, собеседник) */
.topbar--identity { grid-template-columns: auto minmax(0, 1fr) auto; }
.topbar--identity .topbar__center { justify-content: flex-start; }
-19
View File
@@ -684,24 +684,6 @@ button.dm-via-node:active { border-color: color-mix(in srgb, var(--rel-link) 50%
}
.dm-head-filter-title {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
cursor: pointer;
}
.dm-head-filter-title::after {
content: "⌄";
font-size: 13px;
line-height: 1;
opacity: 0.72;
transform: translateY(-1px);
}
/* ===== Personal chat row layout: time top-right, unread bottom-right ===== */
.dm-list-screen .dm-row-time {
grid-row: 1;
@@ -739,7 +721,6 @@ button.dm-via-node:active { border-color: color-mix(in srgb, var(--rel-link) 50%
.dm-row-time { font-size: var(--text-xs); font-weight: 400; color: var(--text-secondary); }
.dm-contact-note { flex-shrink: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--rel-contact); font-size: var(--text-xs); font-weight: var(--weight-medium); }
.dm-contact-note--close_friend { color: var(--rel-family); }
.dm-filter-row { margin: 0 0 var(--space-1); }
.dm-row-meta-col { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; }
.dm-row-meta-line { display: flex; align-items: center; gap: 0; }
.dm-unread-badge { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: var(--radius-pill); color: var(--on-accent); background: var(--accent); border: 0; font-size: var(--text-xs); font-weight: var(--weight-bold); }