Skip to content

Commit 5e1f789

Browse files
committed
fix(projects): fix top menu abnormal
1 parent c6a0505 commit 5e1f789

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/materials/src/libs/admin-layout/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ const AdminLayout: FC<AdminLayoutProps> = ({
104104
const footerDisplay = !fullContent && fixedFooter ? 'block' : 'none';
105105

106106
return (
107-
<div
107+
<section
108108
className={classNames('relative h-full', commonClass)}
109109
style={cssVar}
110110
>
111-
<div
111+
<section
112112
id={isWrapperScroll ? scrollElId : ''}
113113
className={classNames('h-full flex flex-col', scrollWrapperClass, commonClass, {
114114
'overflow-y-auto': isWrapperScroll
@@ -233,8 +233,8 @@ const AdminLayout: FC<AdminLayoutProps> = ({
233233
></div>
234234
</>
235235
)}
236-
</div>
237-
</div>
236+
</section>
237+
</section>
238238
);
239239
};
240240
export default AdminLayout;

src/layouts/modules/global-menu/components/VerticalMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const VerticalMenu = memo(() => {
4848

4949
const openKeys = getSelectedMenuKeyPath(route.matched);
5050

51-
const isMix = themeSettings.layout.mode === 'vertical-mix';
51+
const isMix = themeSettings.layout.mode.includes('mix');
5252

5353
const inlineCollapsed = useAppSelector(getSiderCollapse);
5454

0 commit comments

Comments
 (0)