Shared: CampaignsBanner: fix style

This commit is contained in:
Viktor Fomin 2024-04-03 15:24:53 +03:00
parent d888466845
commit 24e326c8d9
2 changed files with 10 additions and 12 deletions

View File

@ -34,31 +34,28 @@ const BannerWrapper = styled.div<{
}>`
overflow: hidden;
position: relative;
min-height: 140px;
max-height: 140px;
border-radius: 4px;
border: 1px solid ${(props) => props.borderColor};
min-height: 142px;
max-height: 142px;
&::before {
content: "";
background-image: url(${(props) => props.background});
background-size: 100%;
background-repeat: no-repeat;
background-position: 0% 100%;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
z-index: -1000;
inset: 0px;
border-radius: 4px;
border: 1px solid ${(props) => props.borderColor};
${(props) =>
props.theme.interfaceDirection === "rtl" &&
css`
transform: scaleX(-1);
`}
@media ${mobile} {
background-position: 0% 100%;
}
}
.close-icon {

View File

@ -111,6 +111,7 @@ const CampaignsBanner = (props: CampaignsBannerProps) => {
fontSize={action?.fontSize}
fontWeight={action?.fontWeight}
onClick={() => onAction(action?.type, Link)}
isHovered
>
{ButtonLabel}
</LinkComponent>