mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-06-18 04:05:06 -04:00
refactor(ui): removed all n-space
This commit is contained in:
parent
34d8e5ce2c
commit
4d2b037dbe
40 changed files with 222 additions and 246 deletions
|
@ -1,8 +1,6 @@
|
|||
<template>
|
||||
<c-card class="colored-card">
|
||||
<n-space justify="space-between" align="center">
|
||||
<n-icon class="icon" size="40" :component="icon" />
|
||||
</n-space>
|
||||
<n-icon class="icon" size="40" :component="icon" />
|
||||
<n-h3 class="title">
|
||||
<n-ellipsis>{{ title }}</n-ellipsis>
|
||||
</n-h3>
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
<span>{{ tooltipText }}</span>
|
||||
</n-tooltip>
|
||||
</c-card>
|
||||
<n-space v-if="copyPlacement === 'outside'" justify="center" mt-4>
|
||||
<div v-if="copyPlacement === 'outside'" mt-4 flex justify-center>
|
||||
<c-button @click="onCopyClicked"> {{ tooltipText }} </c-button>
|
||||
</n-space>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<template>
|
||||
<router-link :to="tool.path">
|
||||
<c-card class="tool-card">
|
||||
<n-space justify="space-between" align="center">
|
||||
<div flex items-center justify-between>
|
||||
<n-icon class="icon" size="40" :component="tool.icon" />
|
||||
<n-space align="center">
|
||||
<div flex items-center gap-8px>
|
||||
<n-tag
|
||||
v-if="tool.isNew"
|
||||
size="small"
|
||||
|
@ -17,8 +17,8 @@
|
|||
</n-tag>
|
||||
|
||||
<favorite-button :tool="tool" />
|
||||
</n-space>
|
||||
</n-space>
|
||||
</div>
|
||||
</div>
|
||||
<n-h3 class="title">
|
||||
<n-ellipsis>{{ tool.name }}</n-ellipsis>
|
||||
</n-h3>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue