mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-01 05:02:01 +08:00
fix: set light bg for full screen in dashboard (#4465)
This commit is contained in:
parent
01fc7a7fd4
commit
78c9330666
@ -1,8 +1,10 @@
|
|||||||
.fullscreen-grid-container {
|
.fullscreen-grid-container {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
margin-top: 1rem;
|
||||||
|
|
||||||
.react-grid-layout {
|
.react-grid-layout {
|
||||||
border: none !important;
|
border: none !important;
|
||||||
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -13,3 +15,9 @@
|
|||||||
height: calc(100% - 30px);
|
height: calc(100% - 30px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lightMode {
|
||||||
|
.fullscreen-grid-container {
|
||||||
|
background-color: rgb(250, 250, 250);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -74,6 +74,8 @@ function SideNav({
|
|||||||
isCurrentVersionError,
|
isCurrentVersionError,
|
||||||
} = useSelector<AppState, AppReducer>((state) => state.app);
|
} = useSelector<AppState, AppReducer>((state) => state.app);
|
||||||
|
|
||||||
|
const [licenseTag, setLicenseTag] = useState('');
|
||||||
|
|
||||||
const userSettingsMenuItem = {
|
const userSettingsMenuItem = {
|
||||||
key: ROUTES.MY_SETTINGS,
|
key: ROUTES.MY_SETTINGS,
|
||||||
label: user?.name || 'User',
|
label: user?.name || 'User',
|
||||||
@ -239,6 +241,18 @@ function SideNav({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (!isFetching) {
|
||||||
|
if (isCloudUserVal) {
|
||||||
|
setLicenseTag('Cloud');
|
||||||
|
} else if (isEnterprise) {
|
||||||
|
setLicenseTag('Enterprise');
|
||||||
|
} else {
|
||||||
|
setLicenseTag('Free');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, [isCloudUserVal, isEnterprise, isFetching]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={cx('sideNav', collapsed ? 'collapsed' : '')}>
|
<div className={cx('sideNav', collapsed ? 'collapsed' : '')}>
|
||||||
<div className="brand">
|
<div className="brand">
|
||||||
@ -257,7 +271,7 @@ function SideNav({
|
|||||||
|
|
||||||
{!collapsed && (
|
{!collapsed && (
|
||||||
<>
|
<>
|
||||||
<div className="license tag">{!isEnterprise ? 'Free' : 'Enterprise'}</div>
|
{!isFetching && <div className="license tag">{licenseTag}</div>}
|
||||||
|
|
||||||
<ToggleButton
|
<ToggleButton
|
||||||
checked={isDarkMode}
|
checked={isDarkMode}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user