fix: prevent horizontal scroll of menus (#1279)
This commit is contained in:
parent
90b2f1e859
commit
bfc83372c6
@ -315,7 +315,10 @@ const SettingsCenter = (props) => {
|
||||
`}
|
||||
theme={'light'}
|
||||
>
|
||||
<Menu selectedKeys={[pluginName]} style={{ height: 'calc(100vh - 46px)', overflowY: 'auto' }}>
|
||||
<Menu
|
||||
selectedKeys={[pluginName]}
|
||||
style={{ height: 'calc(100vh - 46px)', overflowY: 'auto', overflowX: 'hidden' }}
|
||||
>
|
||||
{Object.keys(items)
|
||||
.sort()
|
||||
.map((key) => {
|
||||
|
@ -292,6 +292,7 @@ export const Menu: ComposedMenu = observer((props) => {
|
||||
className={css`
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
.ant-menu-item {
|
||||
> .ant-menu-title-content {
|
||||
margin-left: -24px;
|
||||
|
Loading…
Reference in New Issue
Block a user