[Refactoring] Custom Emoji: Remove grid fix (#4528)

This commit is contained in:
Alexander Zinchuk 2024-05-03 14:38:10 +02:00
parent 714344dc2d
commit 6def917d1c
4 changed files with 0 additions and 11 deletions

View File

@ -6,11 +6,6 @@
position: relative;
flex: 0 0 var(--custom-emoji-size);
&.with-grid-fix .media, &.with-grid-fix .thumb {
width: calc(100%) !important;
height: calc(100% + 1px) !important;
}
canvas {
display: block;
}

View File

@ -30,7 +30,6 @@ type OwnProps = {
style?: string;
isBig?: boolean;
noPlay?: boolean;
withGridFix?: boolean;
withSharedAnimation?: boolean;
sharedCanvasRef?: React.RefObject<HTMLCanvasElement>;
sharedCanvasHqRef?: React.RefObject<HTMLCanvasElement>;
@ -55,7 +54,6 @@ const CustomEmoji: FC<OwnProps> = ({
className,
loopLimit,
style,
withGridFix,
withSharedAnimation,
sharedCanvasRef,
sharedCanvasHqRef,
@ -117,7 +115,6 @@ const CustomEmoji: FC<OwnProps> = ({
className,
'custom-emoji',
'emoji',
withGridFix && styles.withGridFix,
)}
onClick={onClick}
onAnimationEnd={onAnimationEnd}

View File

@ -436,7 +436,6 @@ function processEntity({
withSharedAnimation
sharedCanvasRef={sharedCanvasRef}
sharedCanvasHqRef={sharedCanvasHqRef}
withGridFix={!emojiSize}
observeIntersectionForLoading={observeIntersectionForLoading}
observeIntersectionForPlaying={observeIntersectionForPlaying}
withTranslucentThumb={withTranslucentThumbs}
@ -568,7 +567,6 @@ function processEntity({
withSharedAnimation
sharedCanvasRef={sharedCanvasRef}
sharedCanvasHqRef={sharedCanvasHqRef}
withGridFix={!emojiSize}
observeIntersectionForLoading={observeIntersectionForLoading}
observeIntersectionForPlaying={observeIntersectionForPlaying}
withTranslucentThumb={withTranslucentThumbs}

View File

@ -784,7 +784,6 @@
}
.text-content {
text-align: center;
word-break: normal;
line-height: var(--emoji-only-size);