Browse Source

refactor(gui): remove outline and provide a simple transition for icons

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5116/head
Pranav C 2 years ago
parent
commit
3e542e4158
  1. 5
      packages/nc-gui/assets/style.scss
  2. 18
      packages/nc-gui/components/smartsheet/expanded-form/Header.vue

5
packages/nc-gui/assets/style.scss

@ -324,3 +324,8 @@ a {
.nc-drawer-expanded-form .ant-drawer-content-wrapper {
transition: width 0.3s !important;
}
.nc-icon-transition {
@apply transform transition-transform !hover:(scale-115) !active:(scale-100)
}

18
packages/nc-gui/components/smartsheet/expanded-form/Header.vue

@ -108,7 +108,7 @@ const onConfirmDeleteRowClick = async () => {
<template #title>
<div class="text-center w-full">{{ $t('general.reload') }}</div>
</template>
<mdi-reload v-if="!isNew" class="cursor-pointer select-none text-gray-500 mx-1 min-w-4" @click="loadRow" />
<mdi-reload v-if="!isNew" class="nc-icon-transition cursor-pointer select-none text-gray-500 mx-1 min-w-4" @click="loadRow" />
</a-tooltip>
<a-tooltip placement="bottom">
<template #title>
@ -117,7 +117,7 @@ const onConfirmDeleteRowClick = async () => {
</template>
<mdi-link
v-if="!isNew"
class="cursor-pointer select-none text-gray-500 mx-1 nc-copy-row-url min-w-4"
class="nc-icon-transition cursor-pointer select-none text-gray-500 mx-1 nc-copy-row-url min-w-4"
@click="copyRecordUrl"
/>
</a-tooltip>
@ -130,7 +130,7 @@ const onConfirmDeleteRowClick = async () => {
<MdiCommentTextOutline
v-if="isUIAllowed('rowComments') && !isNew"
v-e="['c:row-expand:comment-toggle']"
class="cursor-pointer select-none nc-toggle-comments text-gray-500 mx-1 min-w-4"
class="nc-icon-transition cursor-pointer select-none nc-toggle-comments text-gray-500 mx-1 min-w-4"
@click="commentsDrawer = !commentsDrawer"
/>
</a-tooltip>
@ -143,7 +143,7 @@ const onConfirmDeleteRowClick = async () => {
<MdiContentCopy
v-if="isUIAllowed('xcDatatableEditable') && !isNew"
v-e="['c:row-expand:duplicate']"
class="cursor-pointer select-none nc-duplicate-row text-gray-500 mx-1 min-w-4"
class="nc-icon-transition cursor-pointer select-none nc-duplicate-row text-gray-500 mx-1 min-w-4"
@click="!isNew && emit('duplicateRow')"
/>
</a-tooltip>
@ -156,7 +156,7 @@ const onConfirmDeleteRowClick = async () => {
<MdiDeleteOutline
v-if="isUIAllowed('xcDatatableEditable') && !isNew"
v-e="['c:row-expand:delete']"
class="cursor-pointer select-none nc-delete-row text-gray-500 mx-1 min-w-4"
class="nc-icon-transition cursor-pointer select-none nc-delete-row text-gray-500 mx-1 min-w-4"
@click="!isNew && onDeleteRowClick()"
/>
</a-tooltip>
@ -196,7 +196,7 @@ const onConfirmDeleteRowClick = async () => {
<div class="text-center w-full">{{ $t('general.close') }}</div>
</template>
<MdiCloseCircleOutline
class="cursor-pointer select-none nc-toggle-comments text-gray-500 mx-1 min-w-4"
class="nc-icon-transition cursor-pointer select-none nc-toggle-comments text-gray-500 mx-1 min-w-4"
@click="emit('cancel')"
/>
</a-tooltip>
@ -206,3 +206,9 @@ const onConfirmDeleteRowClick = async () => {
</a-modal>
</div>
</template>
<style scoped>
:deep(svg) {
@apply outline-none;
}
</style>

Loading…
Cancel
Save