Browse Source

fix: auto scroll in audits

pull/6486/head
sreehari jayaraj 1 year ago
parent
commit
915f4303a7
  1. 18
      packages/nc-gui/assets/nc-icons/project.svg
  2. 13
      packages/nc-gui/assets/nc-icons/table.svg
  3. 2
      packages/nc-gui/components/general/UserIcon.vue
  4. 8
      packages/nc-gui/components/smartsheet/expanded-form/Comments.vue

18
packages/nc-gui/assets/nc-icons/project.svg

@ -1,9 +1,9 @@
<svg width="14" height="14" stroke="transparent" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.99294 13.8095L13.548 11.28C13.8177 11.1572 13.9569 10.9975 13.9659 10.8367H0C0.00896348 10.9975 0.148262 11.1572 0.417899 11.28L5.97294 13.8095C6.53075 14.0635 7.43514 14.0635 7.99294 13.8095Z" fill="#142966"/>
<path d="M13.9999 8.27887H0.00512695V10.8366H13.9999V8.27887Z" fill="#142966"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.99294 11.2517L13.548 8.72217C13.8177 8.5994 13.9569 8.43974 13.9659 8.27887H0C0.00896348 8.43974 0.148262 8.5994 0.417899 8.72217L5.97294 11.2517C6.53075 11.5057 7.43514 11.5057 7.99294 11.2517Z" fill="#142966"/>
<path d="M13.9999 5.72113H0.00512695V8.27891H13.9999V5.72113Z" fill="#142966"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.99294 9.9729L13.548 7.44332C13.8177 7.32054 13.9569 7.16088 13.9659 7H0C0.00896348 7.16088 0.148262 7.32054 0.417899 7.44332L5.97294 9.9729C6.53075 10.2269 7.43514 10.2269 7.99294 9.9729Z" fill="#36BFFF"/>
<path d="M13.9997 3.16309H0.00488281V7.00309H13.9997V3.16309Z" fill="#36BFFF"/>
<path d="M13.5484 3.63991L7.99337 6.16947C7.43561 6.42348 6.53121 6.42348 5.9734 6.16947L0.418362 3.63991C-0.139454 3.3859 -0.139454 2.97408 0.418362 2.72007L5.9734 0.190505C6.53121 -0.0635018 7.43561 -0.0635018 7.99337 0.190505L13.5484 2.72007C14.1063 2.97408 14.1063 3.3859 13.5484 3.63991Z" fill="#36BFFF"/>
</svg>
<svg width="16" height="16" viewBox="0 0 1073 1073" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="mask0_1749_80944" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="94" y="40" width="885" height="993">
<path d="M978.723 40H94V1033H978.723V40Z" fill="white"/>
</mask>
<g mask="url(#mask0_1749_80944)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M638.951 291.265L936.342 462.949C966.129 480.145 980.256 502.958 978.723 525.482V774.266C980.256 796.789 966.129 819.602 936.342 836.798L638.951 1008.48C582.292 1041.19 490.431 1041.19 433.773 1008.48L136.381 836.798C106.595 819.602 92.4675 796.789 93.9999 774.266L93.9999 525.482C92.4675 502.957 106.595 480.145 136.381 462.949L433.773 291.265C490.431 258.556 582.292 258.556 638.951 291.265Z" fill="#142966"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M638.951 65.0055L936.342 236.69C966.129 253.886 980.256 276.699 978.723 299.222V548.006C980.256 570.529 966.129 593.343 936.342 610.538L638.951 782.223C582.292 814.931 490.431 814.931 433.773 782.223L136.381 610.538C106.595 593.343 92.4675 570.529 93.9999 548.006L93.9999 299.222C92.4675 276.699 106.595 253.886 136.381 236.69L433.773 65.0055C490.431 32.2968 582.292 32.2968 638.951 65.0055Z" fill="#36BFFF"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

13
packages/nc-gui/assets/nc-icons/table.svg

@ -1,13 +1,12 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_440_61068)">
<path d="M16 9.77002L0 9.77002" stroke="#4A5268" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M16 6.21997L0 6.21997" stroke="#4A5268" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M15.3334 3.99984C15.3334 3.26346 14.7365 2.6665 14.0001 2.6665H8.00008H2.00008C1.2637 2.6665 0.666748 3.26346 0.666748 3.99984V11.9998C0.666748 12.7362 1.2637 13.3332 2.00008 13.3332H8.00008H14.0001C14.7365 13.3332 15.3334 12.7362 15.3334 11.9998V3.99984Z" stroke="#4A5268" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M6 3L6 13" stroke="#4A5268" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
<g clip-path="url(#clip0_1613_80692)">
<path d="M11.8571 5.96903L4.14285 10.4225" stroke="#374151" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
<rect x="1.15184" width="9.06208" height="9.06208" rx="1.335" transform="matrix(0.866044 -0.499967 0.866044 0.499967 -0.845705 8.77156)" stroke="#374151" stroke-width="1.33"/>
<path d="M3.5 6.34009L11.2143 10.7935" stroke="#374151" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
</g>
<defs>
<clipPath id="clip0_440_61068">
<clipPath id="clip0_1613_80692">
<rect width="16" height="16" fill="white"/>
</clipPath>
</defs>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 955 B

After

Width:  |  Height:  |  Size: 686 B

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

@ -46,7 +46,7 @@ const usernameInitials = computed(() => {
<template>
<div
class="flex nc-user-avatar"
class="flex nc-user-avatar font-bold"
:class="{
'min-w-4 min-h-4': size === 'small',
'min-w-6 min-h-6': size === 'medium',

8
packages/nc-gui/components/smartsheet/expanded-form/Comments.vue

@ -93,7 +93,7 @@ const value = computed({
})
watch(
commentsAndLogs,
[commentsAndLogs, tab],
() => {
setTimeout(() => {
if (commentsWrapperEl.value) commentsWrapperEl.value.scrollTop = commentsWrapperEl.value?.scrollHeight
@ -240,11 +240,11 @@ const processedAudit = (log: string) => {
<div class="bg-white rounded-xl border-1 gap-3 border-gray-200">
<div class="flex flex-col p-4 gap-3">
<div class="flex justify-between">
<div class="flex font-bold items-center gap-2">
<GeneralUserIcon size="base" :name="log.display_name ?? log.user" />
<div class="flex items-center gap-2">
<GeneralUserIcon size="base" :name="log.display_name ?? log.user" :email="log.user" />
<div class="flex flex-col">
<span class="truncate max-w-50">
<span class="truncate max-w-50 font-bold">
{{ log.display_name ?? log.user.split('@')[0].slice(0, 2) ?? 'Shared base' }}
</span>
<div v-if="log.id !== editLog?.id" class="text-xs text-gray-500">

Loading…
Cancel
Save