Поднять бейдж канала и опустить время

This commit is contained in:
2026-08-22 17:00:26 +03:00
parent 1f1bc0a7b9
commit 0f30317bb4
2 changed files with 18 additions and 0 deletions
+2
View File
@@ -13,6 +13,7 @@ import {
} from '../services/channels-ux.js';
import { makeShineChannelRoute } from '../services/shine-routes.js';
import { renderAvatar } from '../components/avatar-image.js';
import { createOverflowDots } from '../components/overflow-dots.js';
import { parseDmTechBlocks } from '../services/dm-tech-blocks.js';
export const pageMeta = { id: 'channels-list', title: 'Каналы' };
@@ -1226,6 +1227,7 @@ function renderListContent({ screen, container, listState, navigate, refreshFeed
const count = document.createElement('span');
count.className = 'unread channel-row-count';
const unreadCount = Number(channel.unreadCount || 0);
count.hidden = unreadCount <= 0;
count.textContent = unreadCount > 0 ? String(unreadCount) : '';
count.classList.toggle('is-empty', unreadCount <= 0);
+16
View File
@@ -4208,6 +4208,16 @@ textarea.input {
line-height: 1;
}
.channels-screen--list .channel-row-count {
grid-row: 1;
align-self: start;
justify-self: end;
}
.channels-screen--list .channel-row-count[hidden] {
display: none !important;
}
.channels-bottom-action {
margin-top: 6px;
min-height: 48px;
@@ -5236,6 +5246,12 @@ textarea.input {
gap: 6px;
position: relative;
min-width: 44px;
grid-template-rows: auto auto;
}
.channels-screen--list .channel-row-time {
grid-row: 2;
align-self: end;
}
.channel-menu-trigger {