diff --git a/src/components/templates/card-list.tsx b/src/components/templates/card-list.tsx index 7f06a89f..4b140c7a 100644 --- a/src/components/templates/card-list.tsx +++ b/src/components/templates/card-list.tsx @@ -25,7 +25,7 @@ interface CatalogListProps { resizable?: boolean; dataList: any[]; loading: boolean; - activeId: number; + activeId: Global.WithFalse; isFirst: boolean; renderItem: (data: any) => React.ReactNode; Skeleton: React.ComponentType<{ span: number }>; diff --git a/src/components/templates/card.tsx b/src/components/templates/card.tsx index c20b8991..14480f1a 100644 --- a/src/components/templates/card.tsx +++ b/src/components/templates/card.tsx @@ -66,9 +66,9 @@ const Inner = styled.div.attrs({ display: flex; width: 100%; flex-direction: column; - justify-content: flex-start; + justify-content: center; gap: 8px; - line-height: 1.5; + height: 100%; `; const Icon = styled.div.attrs({ diff --git a/src/config/global.d.ts b/src/config/global.d.ts index 8086ba5b..1ae72730 100644 --- a/src/config/global.d.ts +++ b/src/config/global.d.ts @@ -1,4 +1,5 @@ declare namespace Global { + type WithFalse = T | false; interface Pagination { page: number; perPage?: number; diff --git a/src/pages/cluster-management/cluster-create.tsx b/src/pages/cluster-management/cluster-create.tsx index 2e22c479..7eb03169 100644 --- a/src/pages/cluster-management/cluster-create.tsx +++ b/src/pages/cluster-management/cluster-create.tsx @@ -329,7 +329,7 @@ const ClusterCreate = () => { {currentStep === startStep && ( {