Message / Message Context Menu: Fix redundant width (#4506)
This commit is contained in:
parent
8b31f33685
commit
714344dc2d
@ -23,7 +23,6 @@
|
||||
padding: 0 !important;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
&.with-reactions .bubble {
|
||||
@ -72,6 +71,12 @@
|
||||
.avatars {
|
||||
padding-inline-start: 1rem;
|
||||
}
|
||||
|
||||
.ReactionSelector {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
transform: translateY(calc(-100% - 0.5rem));
|
||||
}
|
||||
}
|
||||
|
||||
.ReactionSelector-hidden {
|
||||
|
||||
@ -127,7 +127,6 @@ type OwnProps = {
|
||||
|
||||
const SCROLLBAR_WIDTH = 10;
|
||||
const REACTION_SELECTOR_WIDTH_REM = 19.25;
|
||||
const REACTION_SELECTOR_HEIGHT_REM = 3;
|
||||
const ANIMATION_DURATION = 200;
|
||||
|
||||
const MessageContextMenu: FC<OwnProps> = ({
|
||||
@ -293,7 +292,6 @@ const MessageContextMenu: FC<OwnProps> = ({
|
||||
extraPaddingX: SCROLLBAR_WIDTH,
|
||||
extraTopPadding: (document.querySelector<HTMLElement>('.MiddleHeader')!).offsetHeight,
|
||||
extraMarginTop: extraHeightPinned + extraHeightAudioPlayer,
|
||||
topShiftY: withReactions && !isMobile ? -REACTION_SELECTOR_HEIGHT_REM * REM : 0,
|
||||
shouldAvoidNegativePosition: !isDesktop,
|
||||
menuElMinWidth: withReactions && isMobile ? REACTION_SELECTOR_WIDTH_REM * REM : undefined,
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user