fix: menu changes
This commit is contained in:
parent
b853f366f1
commit
ea53d782ad
3 changed files with 48 additions and 32 deletions
|
|
@ -57,8 +57,8 @@ const Header = memo(({ tree }) => {
|
||||||
<nav className={classes.nav}>
|
<nav className={classes.nav}>
|
||||||
<ul className={classes.ul}>
|
<ul className={classes.ul}>
|
||||||
{tree.map((it, idx) => (
|
{tree.map((it, idx) => (
|
||||||
<li key={idx} className={classes.li}>
|
|
||||||
<NavLink
|
<NavLink
|
||||||
|
key={idx}
|
||||||
to={it.route || it.children[0].route}
|
to={it.route || it.children[0].route}
|
||||||
isActive={match => {
|
isActive={match => {
|
||||||
if (!match) return false
|
if (!match) return false
|
||||||
|
|
@ -67,11 +67,12 @@ const Header = memo(({ tree }) => {
|
||||||
}}
|
}}
|
||||||
className={classnames(classes.link, classes.whiteLink)}
|
className={classnames(classes.link, classes.whiteLink)}
|
||||||
activeClassName={classes.activeLink}>
|
activeClassName={classes.activeLink}>
|
||||||
|
<li className={classes.li}>
|
||||||
<span className={classes.forceSize} forcesize={it.label}>
|
<span className={classes.forceSize} forcesize={it.label}>
|
||||||
{it.label}
|
{it.label}
|
||||||
</span>
|
</span>
|
||||||
</NavLink>
|
|
||||||
</li>
|
</li>
|
||||||
|
</NavLink>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
||||||
|
|
@ -39,24 +39,17 @@ export default {
|
||||||
},
|
},
|
||||||
ul: {
|
ul: {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
marginBottom: spacer * 1,
|
paddingLeft: spacer * 4.5,
|
||||||
paddingLeft: spacer * 4.5
|
height: spacer * 7,
|
||||||
|
margin: 0
|
||||||
},
|
},
|
||||||
li: {
|
li: {
|
||||||
extend: tl2,
|
// extend: tl2,
|
||||||
height: spacer * 3,
|
// height: spacer * 7,
|
||||||
listStyle: 'none',
|
listStyle: 'none',
|
||||||
color: white,
|
color: white,
|
||||||
padding: [[0, spacer * 2.5]]
|
margin: [[spacer * 2.5, spacer * 2.5, 0, spacer * 2.5]],
|
||||||
},
|
|
||||||
link: {
|
|
||||||
extend: p,
|
|
||||||
textDecoration: 'none',
|
|
||||||
border: 'none',
|
|
||||||
color: white,
|
|
||||||
backgroundColor: 'transparent',
|
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
extend: tl2,
|
|
||||||
color: white
|
color: white
|
||||||
},
|
},
|
||||||
'&:hover::after': {
|
'&:hover::after': {
|
||||||
|
|
@ -78,6 +71,34 @@ export default {
|
||||||
transition: [['all', '0.2s', 'cubic-bezier(0.95, 0.1, 0.45, 0.94)']]
|
transition: [['all', '0.2s', 'cubic-bezier(0.95, 0.1, 0.45, 0.94)']]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
link: {
|
||||||
|
extend: p,
|
||||||
|
textDecoration: 'none',
|
||||||
|
border: 'none',
|
||||||
|
color: white,
|
||||||
|
backgroundColor: 'transparent'
|
||||||
|
// '&:hover': {
|
||||||
|
// color: white
|
||||||
|
// },
|
||||||
|
// '&:hover::after': {
|
||||||
|
// width: '50%',
|
||||||
|
// marginLeft: '-25%'
|
||||||
|
// },
|
||||||
|
// position: 'relative',
|
||||||
|
// '&:after': {
|
||||||
|
// content: '""',
|
||||||
|
// display: 'block',
|
||||||
|
// background: white,
|
||||||
|
// width: 0,
|
||||||
|
// height: 4,
|
||||||
|
// left: '50%',
|
||||||
|
// marginLeft: 0,
|
||||||
|
// bottom: -8,
|
||||||
|
// position: 'absolute',
|
||||||
|
// borderRadius: 1000,
|
||||||
|
// transition: [['all', '0.2s', 'cubic-bezier(0.95, 0.1, 0.45, 0.94)']]
|
||||||
|
// }
|
||||||
|
},
|
||||||
forceSize: {
|
forceSize: {
|
||||||
display: 'inline-block',
|
display: 'inline-block',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
|
@ -91,9 +112,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
activeLink: {
|
activeLink: {
|
||||||
extend: tl2,
|
|
||||||
color: white,
|
color: white,
|
||||||
'&::after': {
|
'& li::after': {
|
||||||
width: '50%',
|
width: '50%',
|
||||||
marginLeft: '-25%'
|
marginLeft: '-25%'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
Main menu:
|
|
||||||
- do not change fonts on hover in the main menu
|
|
||||||
- make the clickable button bigger, not just text
|
|
||||||
|
|
||||||
Overall:
|
Overall:
|
||||||
- caching the page
|
- caching the page
|
||||||
- validation is bad rn, negatives being allowed
|
- validation is bad rn, negatives being allowed
|
||||||
|
|
@ -81,7 +77,6 @@ Compliance:
|
||||||
- Currently admin only handles { type: 'amount', direction: 'both' }
|
- Currently admin only handles { type: 'amount', direction: 'both' }
|
||||||
- Sanctions should have more care in customers.js, currently just looking if is active as if old config
|
- Sanctions should have more care in customers.js, currently just looking if is active as if old config
|
||||||
|
|
||||||
|
|
||||||
Ideas
|
Ideas
|
||||||
- Transactions could have a link to the customer
|
- Transactions could have a link to the customer
|
||||||
- Transactions table on customer should have a link to "transactions"
|
- Transactions table on customer should have a link to "transactions"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue