Skip to content

Commit

Permalink
fix(projects): fix top menu abnormal
Browse files Browse the repository at this point in the history
  • Loading branch information
mufeng889 committed Sep 7, 2024
1 parent c6a0505 commit 5e1f789
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/materials/src/libs/admin-layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ const AdminLayout: FC<AdminLayoutProps> = ({
const footerDisplay = !fullContent && fixedFooter ? 'block' : 'none';

return (
<div
<section
className={classNames('relative h-full', commonClass)}
style={cssVar}
>
<div
<section
id={isWrapperScroll ? scrollElId : ''}
className={classNames('h-full flex flex-col', scrollWrapperClass, commonClass, {
'overflow-y-auto': isWrapperScroll
Expand Down Expand Up @@ -233,8 +233,8 @@ const AdminLayout: FC<AdminLayoutProps> = ({
></div>
</>
)}
</div>
</div>
</section>
</section>
);
};
export default AdminLayout;
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const VerticalMenu = memo(() => {

const openKeys = getSelectedMenuKeyPath(route.matched);

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

const inlineCollapsed = useAppSelector(getSiderCollapse);

Expand Down

0 comments on commit 5e1f789

Please sign in to comment.