Browse Source

fix: personal icon change

pull/9807/head
Pranav C 2 weeks ago
parent
commit
5a7e827994
  1. 5
      packages/nc-gui/assets/nc-icons/personal.svg
  2. 5
      packages/nc-gui/components/smartsheet/toolbar/LockType.vue

5
packages/nc-gui/assets/nc-icons/personal.svg

@ -0,0 +1,5 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.3333 14V12.6667C13.3333 11.9594 13.0523 11.2811 12.5522 10.781C12.0521 10.281 11.3739 10 10.6666 10H5.33329C4.62605 10 3.94777 10.281 3.44767 10.781C2.94758 11.2811 2.66663 11.9594 2.66663 12.6667V14" stroke="currentColor" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M8.00004 7.33333C9.4728 7.33333 10.6667 6.13943 10.6667 4.66667C10.6667 3.19391 9.4728 2 8.00004 2C6.52728 2 5.33337 3.19391 5.33337 4.66667C5.33337 6.13943 6.52728 7.33333 8.00004 7.33333Z" stroke="currentColor" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 714 B

5
packages/nc-gui/components/smartsheet/toolbar/LockType.vue

@ -1,6 +1,7 @@
<script setup lang="ts">
import UsersIcon from '~icons/nc-icons/users'
import LockIcon from '~icons/nc-icons/lock'
import PersonalIcon from '~icons/nc-icons/personal'
import { LockType } from '#imports'
const { type, hideTick } = defineProps<{ hideTick?: boolean; type: LockType }>()
@ -10,7 +11,7 @@ const emit = defineEmits(['select'])
const types = {
[LockType.Personal]: {
title: 'title.personal',
icon: iconMap.account,
icon: PersonalIcon,
subtitle: 'msg.info.personalView',
},
[LockType.Collaborative]: {
@ -35,7 +36,7 @@ const selectedView = inject(ActiveViewInj)
<div class="flex items-center gap-2 flex-grow">
<component
:is="types[type].icon"
class="flex-none"
class="flex-none w-6"
:class="{
'!w-3 h-3': hideTick,
'!w-4 h-4': !hideTick,

Loading…
Cancel
Save