From 00f7da84a3d363e866c7395297909983fe4ec4fd Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Sun, 22 Feb 2026 23:42:36 +0100 Subject: [PATCH] Comment Button: Fix count (#6638) --- src/components/middle/message/CommentButton.scss | 7 ++----- src/components/middle/message/CommentButton.tsx | 3 --- src/components/middle/message/Message.tsx | 1 - 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/components/middle/message/CommentButton.scss b/src/components/middle/message/CommentButton.scss index 6b67b8e14..6a1f12c07 100644 --- a/src/components/middle/message/CommentButton.scss +++ b/src/components/middle/message/CommentButton.scss @@ -54,9 +54,7 @@ } .custom-shape & { - position: absolute; - right: -3rem; - bottom: 3rem; + position: relative; align-items: flex-start; @@ -127,8 +125,7 @@ } } - &.as-action-button { - position: static; + &.CommentButton-custom-shape { background-color: transparent; &::after { diff --git a/src/components/middle/message/CommentButton.tsx b/src/components/middle/message/CommentButton.tsx index 77c8a407a..40ae233c2 100644 --- a/src/components/middle/message/CommentButton.tsx +++ b/src/components/middle/message/CommentButton.tsx @@ -25,7 +25,6 @@ type OwnProps = { disabled?: boolean; isLoading?: boolean; isCustomShape?: boolean; - asActionButton?: boolean; }; const SHOW_LOADER_DELAY = 450; @@ -35,7 +34,6 @@ const CommentButton: FC = ({ threadInfo, disabled, isLoading, - asActionButton, }) => { const { openThread, openFrozenAccountModal } = getActions(); @@ -110,7 +108,6 @@ const CommentButton: FC = ({ disabled && 'disabled', isCustomShape && 'CommentButton-custom-shape', isLoading && 'loading', - asActionButton && 'as-action-button', )} dir={lang.isRtl ? 'rtl' : 'ltr'} onClick={handleClick} diff --git a/src/components/middle/message/Message.tsx b/src/components/middle/message/Message.tsx index cce93debf..a536e671e 100644 --- a/src/components/middle/message/Message.tsx +++ b/src/components/middle/message/Message.tsx @@ -1892,7 +1892,6 @@ const Message = ({ disabled={noComments || !commentsThreadInfo} isLoading={isLoadingComments} isCustomShape - asActionButton /> )} {canForward && (