Skip to content

Commit d4b0cd8

Browse files
dcc123456KevinHuSh
andauthored
Fix: Optimize page layout and style #3221 (#9852)
### What problem does this PR solve? Fix: Optimize page layout and style #3221 - Added the cursor-pointer class to the logo in the Header component - Added an icon property to the ListFilterBar in the Agents and ChatList components - Adjusted the Dataset page layout and set a minimum width - Optimized the DatasetWrapper page layout and added the overflow-auto class - Simplified the search icon in the SearchList component ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --------- Co-authored-by: Kevin Hu <[email protected]>
1 parent 3398dac commit d4b0cd8

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed

web/src/layouts/next-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export function Header() {
111111
<img
112112
src={'/logo.svg'}
113113
alt="logo"
114-
className="size-10 mr-[12]"
114+
className="size-10 mr-[12] cursor-pointer"
115115
onClick={handleLogoClick}
116116
/>
117117
<a

web/src/pages/agents/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export default function Agents() {
3939
title="Agents"
4040
searchString={searchString}
4141
onSearchChange={handleInputChange}
42+
icon="agent"
4243
>
4344
<Button onClick={navigateToAgentTemplates}>
4445
<Plus className="mr-2 h-4 w-4" />

web/src/pages/dataset/dataset/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default function Dataset() {
5959
setRowSelection,
6060
});
6161
return (
62-
<section className="p-5">
62+
<section className="p-5 min-w-[880px]">
6363
<ListFilterBar
6464
title="Dataset"
6565
onSearchChange={handleInputChange}

web/src/pages/dataset/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function DatasetWrapper() {
3939
</PageHeader>
4040
<div className="flex flex-1 min-h-0">
4141
<SideBar></SideBar>
42-
<div className="flex-1">
42+
<div className="flex-1 overflow-auto">
4343
<Outlet />
4444
</div>
4545
</div>

web/src/pages/next-chats/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export default function ChatList() {
3939
<div className="px-8 pt-8">
4040
<ListFilterBar
4141
title="Chat apps"
42+
icon="chat"
4243
onSearchChange={handleInputChange}
4344
searchString={searchString}
4445
>

web/src/pages/next-searches/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,7 @@ export default function SearchList() {
114114
<section className="w-full h-full flex flex-col">
115115
<div className="px-8 pt-8">
116116
<ListFilterBar
117-
icon={
118-
<div className="rounded-sm bg-emerald-400 bg-gradient-to-t from-emerald-400 via-emerald-400 to-emerald-200 p-1 size-6 flex justify-center items-center">
119-
<Search size={14} className="font-bold m-auto" />
120-
</div>
121-
}
117+
icon="search"
122118
title="Search apps"
123119
showFilter={false}
124120
onSearchChange={(e) => handleSearchChange(e.target.value)}

0 commit comments

Comments
 (0)