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 { .nc-drawer-expanded-form .ant-drawer-content-wrapper {
transition: width 0.3s !important; 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> <template #title>
<div class="text-center w-full">{{ $t('general.reload') }}</div> <div class="text-center w-full">{{ $t('general.reload') }}</div>
</template> </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>
<a-tooltip placement="bottom"> <a-tooltip placement="bottom">
<template #title> <template #title>
@ -117,7 +117,7 @@ const onConfirmDeleteRowClick = async () => {
</template> </template>
<mdi-link <mdi-link
v-if="!isNew" 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" @click="copyRecordUrl"
/> />
</a-tooltip> </a-tooltip>
@ -130,7 +130,7 @@ const onConfirmDeleteRowClick = async () => {
<MdiCommentTextOutline <MdiCommentTextOutline
v-if="isUIAllowed('rowComments') && !isNew" v-if="isUIAllowed('rowComments') && !isNew"
v-e="['c:row-expand:comment-toggle']" 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" @click="commentsDrawer = !commentsDrawer"
/> />
</a-tooltip> </a-tooltip>
@ -143,7 +143,7 @@ const onConfirmDeleteRowClick = async () => {
<MdiContentCopy <MdiContentCopy
v-if="isUIAllowed('xcDatatableEditable') && !isNew" v-if="isUIAllowed('xcDatatableEditable') && !isNew"
v-e="['c:row-expand:duplicate']" 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')" @click="!isNew && emit('duplicateRow')"
/> />
</a-tooltip> </a-tooltip>
@ -156,7 +156,7 @@ const onConfirmDeleteRowClick = async () => {
<MdiDeleteOutline <MdiDeleteOutline
v-if="isUIAllowed('xcDatatableEditable') && !isNew" v-if="isUIAllowed('xcDatatableEditable') && !isNew"
v-e="['c:row-expand:delete']" 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()" @click="!isNew && onDeleteRowClick()"
/> />
</a-tooltip> </a-tooltip>
@ -196,7 +196,7 @@ const onConfirmDeleteRowClick = async () => {
<div class="text-center w-full">{{ $t('general.close') }}</div> <div class="text-center w-full">{{ $t('general.close') }}</div>
</template> </template>
<MdiCloseCircleOutline <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')" @click="emit('cancel')"
/> />
</a-tooltip> </a-tooltip>
@ -206,3 +206,9 @@ const onConfirmDeleteRowClick = async () => {
</a-modal> </a-modal>
</div> </div>
</template> </template>
<style scoped>
:deep(svg) {
@apply outline-none;
}
</style>

Loading…
Cancel
Save