Skip to content

Commit d226323

Browse files
authored
🐛 Front-end development and optimization of market interface display
2 parents ba40fae + f271bd8 commit d226323

File tree

3 files changed

+59
-42
lines changed

3 files changed

+59
-42
lines changed

doc/docs/en/opensource-memorial-wall.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ Really impressed by Nexent — smooth interface and powerful agent framework. Gr
6868
Nexent represents the future of intelligent agent creation — simple, elegant, and incredibly powerful. As a true zero-code platform, it eliminates the need for orchestration or complex drag-and-drop workflows, allowing anyone to build agents using pure natural language. Built on the robust MCP ecosystem with rich tool integrations, Nexent goes far beyond basic automation by offering a suite of built-in agents tailored for real-world scenarios — from work and travel to everyday life. Its capabilities for agent execution control, multi-agent collaboration, data processing and knowledge tracing, multimodal dialogue, and batch scaling set a new benchmark in intelligent service platforms. Nexent doesn’t just accelerate development — it redefines what’s possible.
6969
:::
7070

71-
::: info uu - 2024-01-15
71+
::: info uu - 2025-11-27
7272
Huawei ICT Agent, thanks to the nexent platform for its support!
7373
:::

frontend/app/[locale]/agents/components/agent/SubAgentPool.tsx

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,24 @@ export default function SubAgentPool({
121121
opacity: 0.5;
122122
cursor: not-allowed !important;
123123
}
124+
125+
/* Agent description clamps to 1 line on small screens */
126+
.agent-description {
127+
display: -webkit-box;
128+
-webkit-box-orient: vertical;
129+
overflow: hidden;
130+
text-overflow: ellipsis;
131+
line-height: 1.25;
132+
-webkit-line-clamp: 1;
133+
max-height: 1.25rem;
134+
}
135+
136+
@media (min-width: 640px) {
137+
.agent-description {
138+
-webkit-line-clamp: 2;
139+
max-height: 2.5rem;
140+
}
141+
}
124142
`}</style>
125143
<div className="flex flex-col h-full min-h-[300px] lg:min-h-0 overflow-hidden">
126144
<div className="flex justify-between items-center mb-2">
@@ -298,7 +316,7 @@ export default function SubAgentPool({
298316
}}
299317
>
300318
<div className="flex items-center h-full">
301-
<div className="flex-1 overflow-hidden">
319+
<div className="flex-1 overflow-hidden min-w-0">
302320
<div
303321
className={`font-medium text-base truncate transition-colors duration-300 ${
304322
!isAvailable ? "text-gray-500" : ""
@@ -333,24 +351,16 @@ export default function SubAgentPool({
333351
</div>
334352
</div>
335353
<div
336-
className={`text-xs line-clamp-2 transition-colors duration-300 leading-[1.25] overflow-hidden ${
354+
className={`text-xs transition-colors duration-300 leading-[1.25] agent-description ${
337355
!isAvailable ? "text-gray-400" : "text-gray-500"
338356
}`}
339-
style={{
340-
display: "-webkit-box",
341-
WebkitLineClamp: 2,
342-
WebkitBoxOrient: "vertical",
343-
overflow: "hidden",
344-
textOverflow: "ellipsis",
345-
maxHeight: "2.5rem",
346-
}}
347357
>
348358
{agent.description}
349359
</div>
350360
</div>
351361

352362
{/* Operation button area */}
353-
<div className="flex items-center gap-1 ml-2">
363+
<div className="flex items-center gap-1 ml-2 flex-shrink-0">
354364
{/* View call relationship button */}
355365
<Tooltip>
356366
<TooltipTrigger asChild>

frontend/components/navigation/SideNavigation.tsx

Lines changed: 37 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ export function SideNavigation({
7171
const pathname = usePathname();
7272
const [collapsed, setCollapsed] = useState(false);
7373
const [selectedKey, setSelectedKey] = useState("0");
74+
const expandedWidth = 277;
75+
const collapsedWidth = 64;
76+
const siderWidth = collapsed ? collapsedWidth : expandedWidth;
7477

7578
// Update selected key when pathname or currentView changes
7679
useEffect(() => {
@@ -247,35 +250,39 @@ export function SideNavigation({
247250
}}
248251
>
249252
<div style={{ position: "relative" }}>
250-
<Sider
251-
collapsed={collapsed}
252-
trigger={null}
253-
breakpoint="lg"
254-
collapsedWidth={64}
255-
width={277}
256-
className="!bg-white/95 dark:!bg-slate-900/95 border-r border-slate-200 dark:border-slate-700 backdrop-blur-sm shadow-sm"
257-
style={{
258-
overflow: "auto",
259-
height: sidebarHeight,
260-
position: "sticky",
261-
top: sidebarTop,
262-
left: 0,
263-
}}
264-
>
265-
<div className="py-2 h-full">
266-
<Menu
267-
mode="inline"
268-
selectedKeys={[selectedKey]}
269-
items={menuItems}
270-
onClick={({ key }) => setSelectedKey(key)}
271-
className="!bg-transparent !border-r-0"
272-
style={{
273-
height: "100%",
274-
borderRight: 0,
275-
}}
276-
/>
277-
</div>
278-
</Sider>
253+
<div style={{ width: `${siderWidth}px`, flexShrink: 0 }}>
254+
<Sider
255+
collapsed={collapsed}
256+
trigger={null}
257+
breakpoint="lg"
258+
collapsedWidth={collapsedWidth}
259+
width={expandedWidth}
260+
className="!bg-white/95 dark:!bg-slate-900/95 border-r border-slate-200 dark:border-slate-700 backdrop-blur-sm shadow-sm"
261+
style={{
262+
overflow: "auto",
263+
minHeight: sidebarHeight,
264+
height: sidebarHeight,
265+
position: "fixed",
266+
top: sidebarTop,
267+
left: 0,
268+
width: `${siderWidth}px`,
269+
}}
270+
>
271+
<div className="py-2 h-full">
272+
<Menu
273+
mode="inline"
274+
selectedKeys={[selectedKey]}
275+
items={menuItems}
276+
onClick={({ key }) => setSelectedKey(key)}
277+
className="!bg-transparent !border-r-0"
278+
style={{
279+
height: "100%",
280+
borderRight: 0,
281+
}}
282+
/>
283+
</div>
284+
</Sider>
285+
</div>
279286

280287
{/* Custom circular floating toggle button - positioned outside Sider */}
281288
<Button
@@ -297,7 +304,7 @@ export function SideNavigation({
297304
alignItems: "center",
298305
justifyContent: "center",
299306
border: "2px solid white",
300-
zIndex: 1000,
307+
zIndex: 800,
301308
transition: "left 0.2s ease",
302309
}}
303310
icon={

0 commit comments

Comments
 (0)