Skip to content

Commit

Permalink
Bug fix: compare tool sub nav bar css
Browse files Browse the repository at this point in the history
  • Loading branch information
esmalleydev committed Mar 4, 2024
1 parent ad86306 commit cc9c4a0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions components/generic/CBB/Compare/SubNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ const SubNavBar = ({ view, home_team_id, away_team_id }) => {

let minSubBarWidth = 75;

if (width < getBreakPoint()) {
minSubBarWidth = 40;
}

const subHeaderStyle: React.CSSProperties = {
'height': subHeaderHeight,
'position': 'fixed',
Expand All @@ -114,13 +118,15 @@ const SubNavBar = ({ view, home_team_id, away_team_id }) => {
'top': getHeaderHeight() + getMarginTop(),
'left': 0,
'right': 0,
'padding': (width < getBreakPoint() ? '0px 10px' : '0px 20px'),
'padding': (width < getBreakPoint() ? '0px 5px' : '0px 20px'),
};

const leftButtons: React.JSX.Element[] = [];
const middleButtons: React.JSX.Element[] = [];
const rightButtons: React.JSX.Element[] = [];



// BEWARE !!!! ON MOBILE, IF YOU ADD MORE BUTTONS, NEED TO REDESIGN, TABS TAKE UP TOO MUCH SPACE, SCROLL UP TO minSubBarWidth

middleButtons.push(
<Tabs key = {'tabs'} variant="scrollable" scrollButtons="auto" value={tabIndex} onChange={(e, value) => {handleView(value)}} indicatorColor="secondary" textColor="inherit">
Expand Down

0 comments on commit cc9c4a0

Please sign in to comment.