refactor(style): improve style for tool-card
This commit is contained in:
		
							parent
							
								
									1d09a01bb2
								
							
						
					
					
						commit
						65a6896563
					
				| @ -1,10 +1,12 @@ | |||||||
| <template> | <template> | ||||||
|     <router-link :to="tool.path"> |     <router-link :to="tool.path"> | ||||||
|         <n-card class="tool-card"> |         <n-card class="tool-card"> | ||||||
|             <n-icon class="icon" size="35"> |             <n-icon class="icon" size="40"> | ||||||
|                 <component :is="tool.icon" /> |                 <component :is="tool.icon" /> | ||||||
|             </n-icon> |             </n-icon> | ||||||
|             <n-h3 class="title">{{ tool.name }}</n-h3> |             <n-h3 class="title"> | ||||||
|  |                 <n-ellipsis>{{ tool.name }}</n-ellipsis> | ||||||
|  |             </n-h3> | ||||||
|             <div class="description"> |             <div class="description"> | ||||||
|                 <n-ellipsis :line-clamp="2" :tooltip="false">{{ tool.description }}</n-ellipsis> |                 <n-ellipsis :line-clamp="2" :tooltip="false">{{ tool.description }}</n-ellipsis> | ||||||
|             </div> |             </div> | ||||||
| @ -30,12 +32,15 @@ a { | |||||||
|     &:hover { |     &:hover { | ||||||
|         border-color: var(--n-color-target); |         border-color: var(--n-color-target); | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|     .icon { |     .icon { | ||||||
|         opacity: 0.7; |         opacity: 0.7; | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|     .title { |     .title { | ||||||
|         margin: 5px 0; |         margin: 5px 0; | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|     .description { |     .description { | ||||||
|         opacity: 0.7; |         opacity: 0.7; | ||||||
|         margin: 5px 0; |         margin: 5px 0; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user