File tree Expand file tree Collapse file tree 2 files changed +15
-37
lines changed Expand file tree Collapse file tree 2 files changed +15
-37
lines changed Original file line number Diff line number Diff line change @@ -216,38 +216,18 @@ const iconColor = computed(() => {
216216 </script >
217217
218218<template >
219- <div class =" label " >
219+ <div class =" flex items-center gap-1 " >
220220 <TIcon
221- class =" label-icon"
222- :style =" {
223- fill: !!color ? color : iconData?.iconColor || iconColor.color,
224- }"
225- :icon =" !!iconType ? iconType : iconData?.iconTypeValue"
221+ class =" size-4 fill-current"
222+ :style =" { fill: color ? color : iconData.iconColor || iconColor.color }"
223+ :icon =" iconType ? iconType : iconData.iconTypeValue"
226224 />
227225 <span
228226 v-if =" title"
229- class =" label-title"
230- :style =" {
231- color: !!color ? color : iconData?.iconColor || iconColor.color,
232- }"
227+ class =" text-xs"
228+ :style =" { color: color ? color : iconData.iconColor || iconColor.color }"
233229 >
234230 {{ title }}
235231 </span >
236232 </div >
237233</template >
238-
239- <style scoped>
240- @reference "../../../index.css";
241-
242- .label {
243- @apply flex items-center ;
244- }
245- .label-icon {
246- @apply fill-current ;
247- width : 16px ;
248- height : 16px ;
249- }
250- .label-title {
251- @apply pl- 1 text-xs ;
252- }
253- </style >
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ const openRotateSecretKey = async (name: string) => {
135135 <div
136136 v-for =" item in items"
137137 :key =" itemID(item)"
138- class =" flex items-center rounded border border-naturals-n5 bg-naturals-n1 p-3"
138+ class =" grid grid-cols-4 items-center rounded border border-naturals-n5 bg-naturals-n1 p-3"
139139 :class =" { 'border-dashed': !item.spec.name }"
140140 >
141141 <div class =" flex items-center gap-3" >
@@ -154,21 +154,19 @@ const openRotateSecretKey = async (name: string) => {
154154 </div >
155155 </div >
156156
157- <div class =" flex-1" ></div >
158-
159157 <TStatus :title =" getStatus(item)" />
160158 <div class =" truncate text-xs" >
161159 {{ item.spec.description }}
162160 </div >
163161
164- <div class =" flex-3 " ></ div >
165-
166- < IconButton icon = " key " @click = " () => openRotateSecretKey(item.metadata.id!) " />
167- < IconButton
168- icon = " delete "
169- danger
170- @click = " () => openInfraProviderDelete(item.metadata.id!) "
171- / >
162+ <div class =" justify-self-end " >
163+ < IconButton icon = " key " @click = " () => openRotateSecretKey(item.metadata.id!) " />
164+ < IconButton
165+ icon = " delete "
166+ danger
167+ @click = " () => openInfraProviderDelete(item.metadata.id!) "
168+ />
169+ </ div >
172170 </div >
173171 </div >
174172 </template >
You can’t perform that action at this time.
0 commit comments