fix(styles): add relative positioning to span elements in mobile navigation bar action (#6734)

This commit is contained in:
Zeke Zhang 2025-04-22 11:36:48 +08:00 committed by GitHub
parent 2faed8de79
commit e5055ef4f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View File

@ -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('mouseleave', hide);
return () => {

View File

@ -29,6 +29,10 @@ export const useStyles = genStyleHook('nb-mobile-navigation-bar-action', (token)
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
'& > span': {
position: 'relative',
},
},
'.nb-navigation-bar-action-title': {
fontSize: 17,