mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### 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 <kevinhu.sh@gmail.com>
This commit is contained in:
@ -111,7 +111,7 @@ export function Header() {
|
|||||||
<img
|
<img
|
||||||
src={'/logo.svg'}
|
src={'/logo.svg'}
|
||||||
alt="logo"
|
alt="logo"
|
||||||
className="size-10 mr-[12]"
|
className="size-10 mr-[12] cursor-pointer"
|
||||||
onClick={handleLogoClick}
|
onClick={handleLogoClick}
|
||||||
/>
|
/>
|
||||||
<a
|
<a
|
||||||
|
|||||||
@ -39,6 +39,7 @@ export default function Agents() {
|
|||||||
title="Agents"
|
title="Agents"
|
||||||
searchString={searchString}
|
searchString={searchString}
|
||||||
onSearchChange={handleInputChange}
|
onSearchChange={handleInputChange}
|
||||||
|
icon="agent"
|
||||||
>
|
>
|
||||||
<Button onClick={navigateToAgentTemplates}>
|
<Button onClick={navigateToAgentTemplates}>
|
||||||
<Plus className="mr-2 h-4 w-4" />
|
<Plus className="mr-2 h-4 w-4" />
|
||||||
|
|||||||
@ -59,7 +59,7 @@ export default function Dataset() {
|
|||||||
setRowSelection,
|
setRowSelection,
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<section className="p-5">
|
<section className="p-5 min-w-[880px]">
|
||||||
<ListFilterBar
|
<ListFilterBar
|
||||||
title="Dataset"
|
title="Dataset"
|
||||||
onSearchChange={handleInputChange}
|
onSearchChange={handleInputChange}
|
||||||
|
|||||||
@ -39,7 +39,7 @@ export default function DatasetWrapper() {
|
|||||||
</PageHeader>
|
</PageHeader>
|
||||||
<div className="flex flex-1 min-h-0">
|
<div className="flex flex-1 min-h-0">
|
||||||
<SideBar></SideBar>
|
<SideBar></SideBar>
|
||||||
<div className="flex-1">
|
<div className="flex-1 overflow-auto">
|
||||||
<Outlet />
|
<Outlet />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -39,6 +39,7 @@ export default function ChatList() {
|
|||||||
<div className="px-8 pt-8">
|
<div className="px-8 pt-8">
|
||||||
<ListFilterBar
|
<ListFilterBar
|
||||||
title="Chat apps"
|
title="Chat apps"
|
||||||
|
icon="chat"
|
||||||
onSearchChange={handleInputChange}
|
onSearchChange={handleInputChange}
|
||||||
searchString={searchString}
|
searchString={searchString}
|
||||||
>
|
>
|
||||||
|
|||||||
@ -114,11 +114,7 @@ export default function SearchList() {
|
|||||||
<section className="w-full h-full flex flex-col">
|
<section className="w-full h-full flex flex-col">
|
||||||
<div className="px-8 pt-8">
|
<div className="px-8 pt-8">
|
||||||
<ListFilterBar
|
<ListFilterBar
|
||||||
icon={
|
icon="search"
|
||||||
<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">
|
|
||||||
<Search size={14} className="font-bold m-auto" />
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
title="Search apps"
|
title="Search apps"
|
||||||
showFilter={false}
|
showFilter={false}
|
||||||
onSearchChange={(e) => handleSearchChange(e.target.value)}
|
onSearchChange={(e) => handleSearchChange(e.target.value)}
|
||||||
|
|||||||
Reference in New Issue
Block a user