diff --git a/icons/mgc/loading_3_cute_li.svg b/icons/mgc/loading_3_cute_li.svg new file mode 100644 index 000000000..7aaf4efb7 --- /dev/null +++ b/icons/mgc/loading_3_cute_li.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/renderer/src/components/ui/loading.tsx b/src/renderer/src/components/ui/loading.tsx index 87bd7e012..6400c3346 100644 --- a/src/renderer/src/components/ui/loading.tsx +++ b/src/renderer/src/components/ui/loading.tsx @@ -24,10 +24,16 @@ export const LoadingCircle: Component = ({ ) +const sizeMap2 = { + small: 30, + medium: 40, + large: 50, +} + const smallIconSizeMap = { - small: 12, - medium: 14, - large: 16, + small: 16, + medium: 18, + large: 24, } export const LoadingWithIcon: Component< LoadingCircleProps & { @@ -35,7 +41,7 @@ export const LoadingWithIcon: Component< order?: "loading-first" | "icon-first" } > = ({ order = "loading-first", size, className, icon, children }) => { - const rootStyle = { width: sizeMap[size], height: sizeMap[size] } + const rootStyle = { width: sizeMap2[size], height: sizeMap2[size] } const smallIconStyle = { height: smallIconSizeMap[size], @@ -51,7 +57,7 @@ export const LoadingWithIcon: Component< {cloneElement(icon, { style: { ...icon.props.style, - fontSize: sizeMap[size], + fontSize: sizeMap2[size], }, className: cn(icon.props.className), })} @@ -80,12 +86,12 @@ export const LoadingWithIcon: Component<