Composer / Inline Results: Fix redundant item thumb background
This commit is contained in:
parent
c20d97a635
commit
4c25f43477
@ -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%;
|
||||
|
||||
@ -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}
|
||||
>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user