Browse Source

fix: small changes

pull/7431/head
Ramesh Mane 10 months ago
parent
commit
1f481733fc
  1. 2
      packages/nc-gui/components/cell/ReadOnlyUser.vue
  2. 2
      packages/nc-gui/components/general/UserIcon.vue

2
packages/nc-gui/components/cell/ReadOnlyUser.vue

@ -15,7 +15,7 @@ provide(ActiveCellInj, ref(true))
</script>
<template>
<div class="relative">
<div class="relative w-full">
<LazyCellUser class="z-0" :model-value="modelValue" />
<div class="w-full h-full z-1 absolute top-0 left-0"></div>
</div>

2
packages/nc-gui/components/general/UserIcon.vue

@ -20,7 +20,7 @@ const email = computed(() => props?.email ?? '')
const backgroundColor = computed(() => {
// in comments we need to generate user icon from email
return displayName.value ? stringToColor(displayName.value) : email.value ? stringToColor(email.value) : '#FFFFFF'
return displayName.value ? stringToColor(displayName.value.trim()) : email.value ? stringToColor(email.value) : '#FFFFFF'
})
const usernameInitials = computed(() => {

Loading…
Cancel
Save