Theme switch support (#3568)

### What problem does this PR solve?
- [x] New Feature (non-breaking change which adds functionality)

---------

Co-authored-by: Yingfeng <yingfeng.zhang@gmail.com>
Co-authored-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
so95
2024-12-10 10:42:04 +07:00
committed by GitHub
parent 7d4f1c0645
commit d5a322a352
85 changed files with 1041 additions and 520 deletions

View File

@ -15,16 +15,8 @@
font-size: 14px;
cursor: pointer;
}
// .mainLayout {
// background: transparent;
// }
}
// .transparentSearchSide {
// background-color: rgb(251 251 251 / 88%) !important;
// }
.searchSide {
position: relative;
max-width: 400px !important;
@ -101,10 +93,10 @@
}
.answerWrapper {
margin-top: 16px;
background: rgb(232 242 251 / 70%);
background: rgba(232 242 251, 1);
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
:global(.ant-card-head) {
background-color: #e6f4ff;
background-color: #e6f4ff23;
}
& p {
margin: 0;

View File

@ -146,9 +146,9 @@ const SearchPage = () => {
></RetrievalDocuments>
<Divider></Divider>
<Spin spinning={loading}>
{chunks.length > 0 && (
{chunks?.length > 0 && (
<List
dataSource={chunks}
dataSource={chunks || []}
className={styles.chunks}
renderItem={(item) => (
<List.Item>