Chat: Implement folder badges (follow-up 2) (#6197)

This commit is contained in:
Alexander Zinchuk 2025-09-09 20:26:01 +02:00
parent 4763bd3492
commit 6ad9b8575f
10 changed files with 20 additions and 13 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "telegram-t",
"version": "10.9.70",
"version": "10.9.71",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "telegram-t",
"version": "10.9.70",
"version": "10.9.71",
"license": "GPL-3.0-or-later",
"dependencies": {
"@cryptography/aes": "^0.1.1",

View File

@ -1,6 +1,6 @@
{
"name": "telegram-t",
"version": "10.9.70",
"version": "10.9.71",
"description": "",
"type": "module",
"main": "index.js",

View File

@ -1 +1 @@
10.9.70
10.9.71

View File

@ -118,10 +118,6 @@
}
}
.ListItem-button {
height: 72px;
}
.ripple-container {
z-index: var(--z-chat-ripple);
}
@ -341,7 +337,7 @@
}
&.has-tags {
line-height: 1.25rem;
line-height: 1.375rem;
.info-row {
height: 1.25rem;
}

View File

@ -359,6 +359,7 @@ const Chat: FC<OwnProps & StateProps> = ({
isSelected && 'selected',
isSelectedForum && 'selected-forum',
isPreview && 'standalone',
shouldRenderTags && 'chat-item-with-tags',
className,
);

View File

@ -5,6 +5,8 @@
}
.tag {
--custom-emoji-size: 0.75rem;
--emoji-size: 0.75rem;
--custom-emoji-size: 0.75rem;
@ -21,7 +23,7 @@
font-size: 0.625rem;
font-weight: var(--font-weight-medium);
line-height: 0.75rem;
line-height: 0.875rem;
color: var(--accent-color);
text-align: center;
text-transform: uppercase;

View File

@ -20,12 +20,12 @@ import './BotKeyboardMenu.scss';
export type OwnProps = {
isOpen: boolean;
messageId: number;
threadId?: ThreadId;
onClose: NoneToVoidFunction;
};
type StateProps = {
message?: ApiMessage;
threadId?: ThreadId;
};
const BotKeyboardMenu: FC<OwnProps & StateProps> = ({

View File

@ -223,6 +223,12 @@
padding: 0.5625rem;
}
&.chat-item-with-tags {
.ListItem-button {
padding: 0.375rem 0.5625rem;
}
}
&.contact-list-item {
.ListItem-button {
padding: 0.5rem;

View File

@ -1711,6 +1711,7 @@ addActionHandler('openChatByUsername', async (global, actions, payload): Promise
text,
timestamp,
linkContext,
isDirect,
}, tabId,
);
if (onChatChanged) {
@ -3406,12 +3407,13 @@ async function openChatByUsername<T extends GlobalState>(
text?: string;
timestamp?: number;
linkContext?: LinkContext;
isDirect?: boolean;
},
...[tabId = getCurrentTabId()]: TabArgs<T>
) {
const {
username, threadId, channelPostId, startParam, ref, startAttach, attach, text, timestamp,
linkContext,
linkContext, isDirect,
} = params;
const currentChat = selectCurrentChat(global, tabId);

View File

@ -1,4 +1,3 @@
import { LinkContext } from './../../api/types/messages';
import type {
ApiAttachBot,
ApiAttachment,
@ -677,6 +676,7 @@ export interface ActionPayloads {
timestamp?: number;
onChatChanged?: CallbackAction;
linkContext?: LinkContext;
isDirect?: boolean;
} & WithTabId;
processBoostParameters: {
usernameOrId: string;