Sponsored Message: Always show message corner (#3995)
This commit is contained in:
parent
680f4bbd15
commit
b09f9bd255
@ -1,6 +1,6 @@
|
|||||||
.SponsoredMessage {
|
.SponsoredMessage {
|
||||||
--border-top-left-radius: var(--border-radius-messages) !important;
|
--border-top-left-radius: var(--border-radius-messages) !important;
|
||||||
--border-bottom-left-radius: var(--border-radius-messages) !important;
|
--border-bottom-left-radius: 0 !important;
|
||||||
|
|
||||||
margin-top: -0.5rem;
|
margin-top: -0.5rem;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
@ -35,8 +35,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.with-avatar {
|
&.with-avatar {
|
||||||
--border-bottom-left-radius: 0 !important;
|
|
||||||
|
|
||||||
padding-left: 2.5rem !important;
|
padding-left: 2.5rem !important;
|
||||||
|
|
||||||
& > .Avatar {
|
& > .Avatar {
|
||||||
@ -127,4 +125,8 @@
|
|||||||
transform: rotate(-45deg);
|
transform: rotate(-45deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.svg-appendix {
|
||||||
|
transform: translate(0.01875rem, -0.00625rem);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -210,8 +210,7 @@ const SponsoredMessage: FC<OwnProps & StateProps> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const contentClassName = buildClassName(
|
const contentClassName = buildClassName(
|
||||||
'message-content has-shadow has-solid-background',
|
'message-content has-shadow has-solid-background has-appendix',
|
||||||
withAvatar && 'has-appendix',
|
|
||||||
getPeerColorClass(peer || channel, true, true),
|
getPeerColorClass(peer || channel, true, true),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -241,7 +240,7 @@ const SponsoredMessage: FC<OwnProps & StateProps> = ({
|
|||||||
</span>
|
</span>
|
||||||
{renderContent()}
|
{renderContent()}
|
||||||
</div>
|
</div>
|
||||||
{withAvatar && <MessageAppendix />}
|
<MessageAppendix />
|
||||||
<Button
|
<Button
|
||||||
className="message-action-button"
|
className="message-action-button"
|
||||||
color="translucent-white"
|
color="translucent-white"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user