Paid Reaction Modal: Fix send as peer menu (#5704)
This commit is contained in:
parent
1e6d8a1f9f
commit
e31a36c41d
@ -49,7 +49,12 @@
|
|||||||
margin-right: 0 !important;
|
margin-right: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sendAsPeerButtonAvatar {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
.sendAsPeerMenuButton {
|
.sendAsPeerMenuButton {
|
||||||
|
transition: background-color 0.15s;
|
||||||
margin-right: 0.25rem;
|
margin-right: 0.25rem;
|
||||||
border-radius: 1.5rem;
|
border-radius: 1.5rem;
|
||||||
padding: 0.25rem !important;
|
padding: 0.25rem !important;
|
||||||
@ -57,9 +62,10 @@
|
|||||||
height: auto !important;
|
height: auto !important;
|
||||||
background-color: var(--color-background-secondary) !important;
|
background-color: var(--color-background-secondary) !important;
|
||||||
|
|
||||||
:active,
|
&:global(.active),
|
||||||
:hover {
|
&:active,
|
||||||
background-color: var(--color-interactive-element-hover) !important;
|
&:hover {
|
||||||
|
background-color: rgba(var(--color-text-secondary-rgb), 0.15) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,7 +75,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sendAsPeerMenuBubble {
|
.sendAsPeerMenuBubble {
|
||||||
|
max-height: 15rem;
|
||||||
|
overflow-y: auto !important;
|
||||||
|
right: auto !important;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%) scale(0.85) !important;
|
||||||
|
transform-origin: center !important;
|
||||||
max-width: 16rem;
|
max-width: 16rem;
|
||||||
|
|
||||||
|
&:global(.open) {
|
||||||
|
transform: translateX(-50%) scale(1) !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sendAsPeerMenu {
|
.sendAsPeerMenu {
|
||||||
|
|||||||
@ -211,6 +211,7 @@ const PaidReactionModal = ({
|
|||||||
ariaLabel={lang('AccDescrOpenMenu2')}
|
ariaLabel={lang('AccDescrOpenMenu2')}
|
||||||
>
|
>
|
||||||
<Avatar
|
<Avatar
|
||||||
|
className={styles.sendAsPeerButtonAvatar}
|
||||||
size="mini"
|
size="mini"
|
||||||
peer={shouldSendAsAnonymous ? ANONYMOUS_PEER : senderPeer}
|
peer={shouldSendAsAnonymous ? ANONYMOUS_PEER : senderPeer}
|
||||||
/>
|
/>
|
||||||
@ -226,7 +227,7 @@ const PaidReactionModal = ({
|
|||||||
if (!canChangeSendAsPeer) return undefined;
|
if (!canChangeSendAsPeer) return undefined;
|
||||||
return (
|
return (
|
||||||
<DropdownMenu
|
<DropdownMenu
|
||||||
className={styles.sendAsPeerMenu}
|
className={buildClassName(styles.sendAsPeerMenu, 'with-menu-transitions')}
|
||||||
bubbleClassName={styles.sendAsPeerMenuBubble}
|
bubbleClassName={styles.sendAsPeerMenuBubble}
|
||||||
trigger={SendAsPeerMenuButton}
|
trigger={SendAsPeerMenuButton}
|
||||||
positionX="right"
|
positionX="right"
|
||||||
|
|||||||
@ -53,7 +53,7 @@
|
|||||||
height: var(--_size);
|
height: var(--_size);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|
||||||
--_width: calc(var(--progress) * 100% - 1rem);
|
--_width: calc(100% - 1rem);
|
||||||
mask-image: linear-gradient(to right, black var(--_width), transparent calc(var(--_width) + 0.5rem));
|
mask-image: linear-gradient(to right, black var(--_width), transparent calc(var(--_width) + 0.5rem));
|
||||||
|
|
||||||
color: white;
|
color: white;
|
||||||
|
|||||||
@ -100,8 +100,9 @@ const StarSlider = ({
|
|||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.progress} />
|
<div className={styles.progress}>
|
||||||
<Sparkles preset="progress" className={styles.sparkles} />
|
<Sparkles preset="progress" className={styles.sparkles} />
|
||||||
|
</div>
|
||||||
<input
|
<input
|
||||||
className={styles.slider}
|
className={styles.slider}
|
||||||
type="range"
|
type="range"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user