Composer / Inline Results: Fix redundant item thumb background

This commit is contained in:
Alexander Zinchuk 2025-08-15 18:25:28 +02:00
parent c20d97a635
commit 4c25f43477
2 changed files with 7 additions and 4 deletions

View File

@ -16,7 +16,9 @@
font-size: 1.5rem;
line-height: 3rem;
background-color: var(--color-background-secondary);
&.with-text {
background-color: var(--color-background-secondary);
}
img:not(.emoji) {
width: 100%;

View File

@ -1,9 +1,10 @@
import type { FC, TeactNode } from '../../../../lib/teact/teact';
import { memo } from '../../../../lib/teact/teact';
import type { FC, TeactNode } from '@teact';
import { memo } from '@teact';
import type { ApiWebDocument } from '../../../../api/types';
import { getWebDocumentHash } from '../../../../global/helpers';
import buildClassName from '../../../../util/buildClassName.ts';
import { getFirstLetters } from '../../../../util/textFormat';
import renderText from '../../../common/helpers/renderText';
import { preventMessageInputBlurWithBubbling } from '../../helpers/preventMessageInputBlur';
@ -49,7 +50,7 @@ const BaseResult: FC<OwnProps> = ({
return (
<ListItem
focus={focus}
className="BaseResult chat-item-clickable"
className={buildClassName('BaseResult chat-item-clickable', typeof content === 'string' && 'with-text')}
onMouseDown={preventMessageInputBlurWithBubbling}
onClick={onClick}
>