Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Sean / fix: tab headers breaking for certain languages #1406

Merged
merged 1 commit into from Feb 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/pages/trade-types/multiplier/_available-trades.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ const CardContainer = styled(Flex)`
position: relative;
width: fit-content;
min-width: 36rem;
height: 7.72rem;
min-height: 7.72rem;
height: auto;
padding: 0;
margin: 0 -0.6rem;
cursor: pointer;
Expand All @@ -75,7 +76,7 @@ const CardContainer = styled(Flex)`
}
h4 {
color: ${(props) =>
props.active_tab === props.name ? 'var(--color-red)' : 'var(--color-black-3)'};
props.active_tab === props.name ? 'var(--color-red)' : 'var(--color-black-3)'};
opacity: ${(props) => (props.active_tab === props.name ? '1' : '0.56')};
}
@media ${device.tabletL} {
Expand Down Expand Up @@ -107,12 +108,12 @@ const CardContainer = styled(Flex)`
transform-origin: bottom left;
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05);
${(props) => {
if (props.active_tab === props.name)
return css`
if (props.active_tab === props.name)
return css`
background-color: var(--color-white);
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05);
`
}}
}}
}
@media ${device.tabletL} {
width: 100%;
Expand Down Expand Up @@ -205,7 +206,7 @@ class AvailableTrades extends React.Component {
const { display_title, Forex, SyntheticIndices } = this.props
return (
<StyledSection>
<StyledHeader size="var(--text-size-header-1)" align="center" as='h2'>
<StyledHeader size="var(--text-size-header-1)" align="center" as="h2">
{display_title}
</StyledHeader>
<StyledContainer direction="column">
Expand Down