perf: card styles

This commit is contained in:
Junyan Qin
2025-05-09 10:06:01 +08:00
parent 7886702ef2
commit 6c6f4ff076
4 changed files with 7 additions and 13 deletions

View File

@@ -3,13 +3,13 @@
height: 10rem; height: 10rem;
background-color: #fff; background-color: #fff;
border-radius: 10px; border-radius: 10px;
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2); box-shadow: 0px 2px 2px 0 rgba(0, 0, 0, 0.2);
padding: 1.2rem; padding: 1.2rem;
cursor: pointer; cursor: pointer;
} }
.cardContainer:hover { .cardContainer:hover {
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1); box-shadow: 0px 2px 8px 0 rgba(0, 0, 0, 0.1);
} }
.iconBasicInfoContainer { .iconBasicInfoContainer {

View File

@@ -26,15 +26,9 @@ export default function BotConfigPage() {
const [nowSelectedBotCard, setNowSelectedBotCard] = useState<BotCardVO>(); const [nowSelectedBotCard, setNowSelectedBotCard] = useState<BotCardVO>();
useEffect(() => { useEffect(() => {
// TODO补齐加载转圈逻辑 getBotList();
}, []); }, []);
async function checkHasLLM(): Promise<boolean> {
// NOT IMPL
return true;
}
async function getBotList() { async function getBotList() {
const adapterListResp = await httpClient.getAdapters(); const adapterListResp = await httpClient.getAdapters();

View File

@@ -3,13 +3,13 @@
height: 10rem; height: 10rem;
background-color: #fff; background-color: #fff;
border-radius: 10px; border-radius: 10px;
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2); box-shadow: 0px 2px 8px 0 rgba(0, 0, 0, 0.2);
padding: 1.2rem; padding: 1.2rem;
cursor: pointer; cursor: pointer;
} }
.cardContainer:hover { .cardContainer:hover {
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1); box-shadow: 0px 2px 8px 0 rgba(0, 0, 0, 0.1);
} }
.iconBasicInfoContainer { .iconBasicInfoContainer {

View File

@@ -3,7 +3,7 @@
height: 10rem; height: 10rem;
background-color: #fff; background-color: #fff;
border-radius: 10px; border-radius: 10px;
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2); box-shadow: 0px 2px 8px 0 rgba(0, 0, 0, 0.2);
padding: 1.2rem; padding: 1.2rem;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
@@ -13,7 +13,7 @@
} }
.cardContainer:hover { .cardContainer:hover {
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1); box-shadow: 0px 2px 8px 0 rgba(0, 0, 0, 0.1);
} }
.basicInfoContainer { .basicInfoContainer {