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