Browse Source

fix: expanded record

pull/6575/head
DarkPhoenix2704 1 year ago
parent
commit
579dfe039b
  1. 4
      packages/nc-gui/components/cell/attachment/index.vue
  2. 6
      packages/nc-gui/components/smartsheet/expanded-form/index.vue

4
packages/nc-gui/components/cell/attachment/index.vue

@ -173,7 +173,7 @@ const onExpand = () => {
ref="attachmentCellRef" ref="attachmentCellRef"
tabindex="0" tabindex="0"
:style="{ :style="{
height: isForm ? undefined : `max(${(rowHeight || 1) * 1.8}rem, 41px)`, height: isForm || isExpandedForm ? undefined : `max(${(rowHeight || 1) * 1.8}rem, 41px)`,
}" }"
class="nc-attachment-cell relative flex color-transition flex items-center w-full" class="nc-attachment-cell relative flex color-transition flex items-center w-full"
:class="{ 'justify-center': !active, 'justify-between': active }" :class="{ 'justify-center': !active, 'justify-between': active }"
@ -226,7 +226,7 @@ const onExpand = () => {
:class="{ 'justify-center': !isExpandedForm && !isGallery }" :class="{ 'justify-center': !isExpandedForm && !isGallery }"
class="flex cursor-pointer w-full items-center flex-wrap gap-2 py-1.5 scrollbar-thin-dull overflow-hidden mt-0 items-start" class="flex cursor-pointer w-full items-center flex-wrap gap-2 py-1.5 scrollbar-thin-dull overflow-hidden mt-0 items-start"
:style="{ :style="{
maxHeight: isForm ? undefined : `max(${(rowHeight || 1) * 1.8}rem, 41px)`, maxHeight: isForm || isExpandedForm ? undefined : `max(${(rowHeight || 1) * 1.8}rem, 41px)`,
}" }"
> >
<template v-for="(item, i) of visibleItems" :key="item.url || item.title"> <template v-for="(item, i) of visibleItems" :key="item.url || item.title">

6
packages/nc-gui/components/smartsheet/expanded-form/index.vue

@ -197,7 +197,7 @@ const onNext = async () => {
const copyRecordUrl = () => { const copyRecordUrl = () => {
copy( copy(
encodeURI( encodeURI(
`${dashboardUrl?.value}#/${route.params.typeOrId}/${route.params.baseId}/${meta.value?.id}${ `${dashboardUrl?.value}#/${route.params.typeOrId}/${route.params.projectId}/${meta.value?.id}${
props.view ? `/${props.view.title}` : '' props.view ? `/${props.view.title}` : ''
}?rowId=${primaryKey.value}`, }?rowId=${primaryKey.value}`,
), ),
@ -706,9 +706,9 @@ export default {
<template #entity-preview> <template #entity-preview>
<span> <span>
<div class="flex flex-row items-center py-2.25 px-2.5 bg-gray-50 rounded-lg text-gray-700 mb-4"> <div class="flex flex-row items-center py-2.25 px-2.5 bg-gray-50 rounded-lg text-gray-700 mb-4">
<component :is="iconMap.table" class="nc-view-icon" /> <component :is="iconMap.record" class="nc-view-icon" />
<div class="capitalize text-ellipsis overflow-hidden select-none w-full pl-1.75 break-keep whitespace-nowrap"> <div class="capitalize text-ellipsis overflow-hidden select-none w-full pl-1.75 break-keep whitespace-nowrap">
{{ meta.title }} {{ displayValue }}
</div> </div>
</div> </div>
</span> </span>

Loading…
Cancel
Save