feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面
This commit is contained in:
@@ -21,6 +21,7 @@ import React from 'react';
|
||||
import { Button } from '@/components/ui';
|
||||
import PropTypes from 'prop-types';
|
||||
import { useIsMobile } from '../../../hooks/common/useIsMobile';
|
||||
import { useConsolePage } from '../../console/ConsoleContext';
|
||||
|
||||
/**
|
||||
* 紧凑模式切换按钮组件
|
||||
@@ -37,9 +38,10 @@ const CompactModeToggle = ({
|
||||
...props
|
||||
}) => {
|
||||
const isMobile = useIsMobile();
|
||||
const consolePage = useConsolePage();
|
||||
|
||||
// 在移动端隐藏紧凑列表切换按钮
|
||||
if (isMobile) {
|
||||
// Console lists keep their stored density, but no longer expose a toggle.
|
||||
if (isMobile || consolePage) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user