SHA256
Поднять бейдж канала и опустить время
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
|||||||
} from '../services/channels-ux.js';
|
} from '../services/channels-ux.js';
|
||||||
import { makeShineChannelRoute } from '../services/shine-routes.js';
|
import { makeShineChannelRoute } from '../services/shine-routes.js';
|
||||||
import { renderAvatar } from '../components/avatar-image.js';
|
import { renderAvatar } from '../components/avatar-image.js';
|
||||||
|
import { createOverflowDots } from '../components/overflow-dots.js';
|
||||||
import { parseDmTechBlocks } from '../services/dm-tech-blocks.js';
|
import { parseDmTechBlocks } from '../services/dm-tech-blocks.js';
|
||||||
|
|
||||||
export const pageMeta = { id: 'channels-list', title: 'Каналы' };
|
export const pageMeta = { id: 'channels-list', title: 'Каналы' };
|
||||||
@@ -1226,6 +1227,7 @@ function renderListContent({ screen, container, listState, navigate, refreshFeed
|
|||||||
const count = document.createElement('span');
|
const count = document.createElement('span');
|
||||||
count.className = 'unread channel-row-count';
|
count.className = 'unread channel-row-count';
|
||||||
const unreadCount = Number(channel.unreadCount || 0);
|
const unreadCount = Number(channel.unreadCount || 0);
|
||||||
|
count.hidden = unreadCount <= 0;
|
||||||
count.textContent = unreadCount > 0 ? String(unreadCount) : '';
|
count.textContent = unreadCount > 0 ? String(unreadCount) : '';
|
||||||
count.classList.toggle('is-empty', unreadCount <= 0);
|
count.classList.toggle('is-empty', unreadCount <= 0);
|
||||||
|
|
||||||
|
|||||||
@@ -4208,6 +4208,16 @@ textarea.input {
|
|||||||
line-height: 1;
|
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 {
|
.channels-bottom-action {
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
min-height: 48px;
|
min-height: 48px;
|
||||||
@@ -5236,6 +5246,12 @@ textarea.input {
|
|||||||
gap: 6px;
|
gap: 6px;
|
||||||
position: relative;
|
position: relative;
|
||||||
min-width: 44px;
|
min-width: 44px;
|
||||||
|
grid-template-rows: auto auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.channels-screen--list .channel-row-time {
|
||||||
|
grid-row: 2;
|
||||||
|
align-self: end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.channel-menu-trigger {
|
.channel-menu-trigger {
|
||||||
|
|||||||
Reference in New Issue
Block a user