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:
Hzh_97
2024-01-12 09:44:52 +08:00
committed by GitHub
parent 2706e27ae5
commit 99ea6ac1a4
99 changed files with 1125 additions and 1410 deletions

View File

@@ -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} />

View File

@@ -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} />
))}