mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +08:00
fix(styles): add relative positioning to span elements in mobile navigation bar action (#6734)
This commit is contained in:
parent
2faed8de79
commit
e5055ef4f6
@ -339,11 +339,6 @@ const InternalSchemaToolbar: FC<SchemaToolbarProps> = React.memo((props) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// const style = window.getComputedStyle(parentElement);
|
|
||||||
// if (style.position === 'static') {
|
|
||||||
// parentElement.style.position = 'relative';
|
|
||||||
// }
|
|
||||||
|
|
||||||
el.addEventListener('mouseenter', show);
|
el.addEventListener('mouseenter', show);
|
||||||
el.addEventListener('mouseleave', hide);
|
el.addEventListener('mouseleave', hide);
|
||||||
return () => {
|
return () => {
|
||||||
|
@ -29,6 +29,10 @@ export const useStyles = genStyleHook('nb-mobile-navigation-bar-action', (token)
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
|
|
||||||
|
'& > span': {
|
||||||
|
position: 'relative',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
'.nb-navigation-bar-action-title': {
|
'.nb-navigation-bar-action-title': {
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user