Ads Message: Adjust styles for the ads message in channels (#5021)

This commit is contained in:
Alexander Zinchuk 2024-10-20 18:53:02 +02:00
parent b059d151c8
commit 24a129c3e1
3 changed files with 15 additions and 4 deletions

View File

@ -90,6 +90,14 @@
padding-bottom: 0.125rem;
}
}
&:has(.sponsored-media-preview) {
margin-bottom: 5.625rem;
.last-in-list {
margin-bottom: 1rem;
}
}
}
@media (max-width: 600px) {

View File

@ -49,7 +49,6 @@
--border-top-left-radius: var(--border-radius-messages-small);
--border-top-right-radius: var(--border-radius-messages-small);
--border-bottom-right-radius: var(--border-radius-messages-small);
--border-bottom-left-radius: var(--border-radius-messages-small);
@media (max-width: 600px) {
max-width: min(29rem, calc(100vw - 4.5rem)) !important;
@ -108,7 +107,7 @@
}
}
.icon {
.sponsored-action-icon {
position: absolute;
font-size: 0.75rem;
top: 0.25rem;
@ -139,4 +138,8 @@
.has-media {
padding-top: 0.5rem;
}
.media-inner {
--border-bottom-left-radius: var(--border-radius-messages-small);
}
}

View File

@ -297,7 +297,7 @@ const SponsoredMessage: FC<OwnProps & StateProps> = ({
ariaLabel={lang('Close')}
onClick={handleHideSponsoredMessage}
>
<Icon name="close" />
<Icon name="close" className="sponsored-action-icon" />
</Button>
{message.canReport && (
<Button
@ -309,7 +309,7 @@ const SponsoredMessage: FC<OwnProps & StateProps> = ({
onClick={handleContextMenu}
onContextMenu={handleContextMenu}
>
<Icon name="more" />
<Icon name="more" className="sponsored-action-icon" />
</Button>
)}
</div>