Skip to content

Commit

Permalink
chore: added a wrapper for the logo in traders hub and scss styles (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aizad-deriv committed May 12, 2023
1 parent 3bc96cb commit 96b5578
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,13 @@ const TradingHubHeader = ({

{header_extension && is_logged_in && <div>{header_extension}</div>}
</MobileWrapper>
<DerivBrandLogo className='trading-hub-header__logo' />
<div
className={classNames('`trading-hub-header__logo-wrapper', {
'trading-hub-header__logo-wrapper--cashier': cashier_routes,
})}
>
<DerivBrandLogo className='trading-hub-header__logo' />
</div>
<DesktopWrapper>
<Divider />
<TradersHubHomeButton is_dark_mode={is_dark_mode} />
Expand Down
12 changes: 10 additions & 2 deletions packages/core/src/sass/app/_common/layout/trading-hub-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
}

@media screen and (max-width: 380px) {
&__cashier-button,
&__logo-wrapper {
&__cashier-button {
display: none;
}
}
Expand All @@ -34,6 +33,15 @@
height: 4rem;
}

&__logo-wrapper {
display: block;
@media screen and (max-width: 380px) {
&--cashier {
display: none;
}
}
}

&__menu-left {
display: inline-flex;
height: #{$HEADER_HEIGHT - 1px};
Expand Down

0 comments on commit 96b5578

Please sign in to comment.