perf: styles of model config page

This commit is contained in:
Junyan Qin
2025-05-06 21:18:39 +08:00
parent 7382186bc4
commit 646687b8da
10 changed files with 183 additions and 96 deletions

View File

@@ -4,17 +4,19 @@ export default function CreateCardComponent({
height,
plusSize,
onClick,
width = '100%',
}: {
height: number;
plusSize: number;
height: string;
plusSize: string;
onClick: () => void;
width?: string;
}) {
return (
<div
className={`${styles.cardContainer} ${styles.createCardContainer} `}
style={{
width: `100%`,
height: `${height}px`,
width: `${width}`,
height: `${height}`,
fontSize: `${plusSize}px`,
}}
onClick={onClick}

View File

@@ -1,9 +1,7 @@
.cardContainer {
width: 360px;
height: 200px;
background-color: #FFF;
border-radius: 9px;
box-shadow: rgba(0, 0, 0, 0.4) 0 1px 1px -1px;
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
align-items: center;