mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-05 19:11:52 +00:00
feat(web): 🎨 Unified color theme, AntV light/dark theme switching, Antd first-screen style loading. (#1020)
Co-authored-by: 黄振洪 <hzh01509324@alibaba-inc.com> Co-authored-by: Aralhi <xiaoping0501@gmail.com>
This commit is contained in:
@@ -48,7 +48,7 @@ function ChunkList() {
|
||||
}, [id, spaceName]);
|
||||
|
||||
return (
|
||||
<div className="h-full overflow-y-scroll relative">
|
||||
<div className="h-full overflow-y-scroll relative px-2">
|
||||
<Breadcrumb
|
||||
className="m-6"
|
||||
items={[
|
||||
@@ -71,6 +71,7 @@ function ChunkList() {
|
||||
return (
|
||||
<Card
|
||||
key={chunk.id}
|
||||
className="mt-2"
|
||||
title={
|
||||
<>
|
||||
<DocIcon type={chunk.doc_type} />
|
||||
|
@@ -59,7 +59,7 @@ const Knowledge = () => {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="bg-[#FAFAFA] dark:bg-[#212121] w-full h-full">
|
||||
<div className="bg-[#FAFAFA] dark:bg-transparent w-full h-full">
|
||||
<div className="page-body p-4 md:p-6 h-full overflow-auto">
|
||||
<Button
|
||||
type="primary"
|
||||
@@ -71,7 +71,7 @@ const Knowledge = () => {
|
||||
>
|
||||
Create
|
||||
</Button>
|
||||
<div className="flex flex-wrap mt-4">
|
||||
<div className="flex flex-wrap mt-4 gap-4">
|
||||
{spaceList?.map((space: ISpace) => (
|
||||
<SpaceCard key={space.id} space={space} onAddDoc={onAddDoc} getSpaces={getSpaces} />
|
||||
))}
|
||||
|
Reference in New Issue
Block a user