Comment Button: Fix count (#6638)

This commit is contained in:
Alexander Zinchuk 2026-02-22 23:42:36 +01:00
parent d47791ff55
commit 00f7da84a3
3 changed files with 2 additions and 9 deletions

View File

@ -54,9 +54,7 @@
} }
.custom-shape & { .custom-shape & {
position: absolute; position: relative;
right: -3rem;
bottom: 3rem;
align-items: flex-start; align-items: flex-start;
@ -127,8 +125,7 @@
} }
} }
&.as-action-button { &.CommentButton-custom-shape {
position: static;
background-color: transparent; background-color: transparent;
&::after { &::after {

View File

@ -25,7 +25,6 @@ type OwnProps = {
disabled?: boolean; disabled?: boolean;
isLoading?: boolean; isLoading?: boolean;
isCustomShape?: boolean; isCustomShape?: boolean;
asActionButton?: boolean;
}; };
const SHOW_LOADER_DELAY = 450; const SHOW_LOADER_DELAY = 450;
@ -35,7 +34,6 @@ const CommentButton: FC<OwnProps> = ({
threadInfo, threadInfo,
disabled, disabled,
isLoading, isLoading,
asActionButton,
}) => { }) => {
const { openThread, openFrozenAccountModal } = getActions(); const { openThread, openFrozenAccountModal } = getActions();
@ -110,7 +108,6 @@ const CommentButton: FC<OwnProps> = ({
disabled && 'disabled', disabled && 'disabled',
isCustomShape && 'CommentButton-custom-shape', isCustomShape && 'CommentButton-custom-shape',
isLoading && 'loading', isLoading && 'loading',
asActionButton && 'as-action-button',
)} )}
dir={lang.isRtl ? 'rtl' : 'ltr'} dir={lang.isRtl ? 'rtl' : 'ltr'}
onClick={handleClick} onClick={handleClick}

View File

@ -1892,7 +1892,6 @@ const Message = ({
disabled={noComments || !commentsThreadInfo} disabled={noComments || !commentsThreadInfo}
isLoading={isLoadingComments} isLoading={isLoadingComments}
isCustomShape isCustomShape
asActionButton
/> />
)} )}
{canForward && ( {canForward && (