Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style: solve when desktop the sider agent list too long (#9792)

Shinji-Li778dea3853d7
diff --git a/src/app/[variants]/(main)/_layout/Desktop/SideBar/index.tsx b/src/app/[variants]/(main)/_layout/Desktop/SideBar/index.tsx
index 7af50e18eb8..9e97e1eade3 100644
--- a/src/app/[variants]/(main)/_layout/Desktop/SideBar/index.tsx
+++ b/src/app/[variants]/(main)/_layout/Desktop/SideBar/index.tsx
@@ -27,12 +27,13 @@ const Top = () => {
const Nav = memo(() => {
const theme = useTheme();
- const isSingleMode = useIsSingleMode()
+ const isSingleMode = useIsSingleMode();
const inZenMode = useGlobalStore(systemStatusSelectors.inZenMode);
const { showPinList } = useServerConfigStore(featureFlagsSelectors);
return (
- !inZenMode && !isSingleMode && (
+ !inZenMode &&
+ !isSingleMode && (
<SideNav
avatar={
<div className={electronStylish.nodrag}>
@@ -54,11 +55,14 @@ const Nav = memo(() => {
}}
topActions={
<Suspense>
- <div className={electronStylish.nodrag} style={{
- display: 'flex',
- flexDirection: 'column',
- maxHeight: "calc(100vh - 150px)"
- }}>
+ <div
+ className={electronStylish.nodrag}
+ style={{
+ display: 'flex',
+ flexDirection: 'column',
+ maxHeight: isDesktop ? 'calc(100vh - 180px)' : 'calc(100vh - 150px)',
+ }}
+ >
<Top />
{showPinList && <PinList />}
</div>