Browse Source

fix(gui-v2): use maximum available width in LTAR cells

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3262/head
Pranav C 2 years ago
parent
commit
f2e9b5130b
  1. 2
      packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue
  2. 2
      packages/nc-gui-v2/components/virtual-cell/HasMany.vue
  3. 2
      packages/nc-gui-v2/components/virtual-cell/ManyToMany.vue
  4. 3
      packages/nc-gui-v2/components/virtual-cell/components/ItemChip.vue

2
packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue

@ -80,7 +80,7 @@ const unlinkRef = async (rec: Record<string, any>) => {
</div> </div>
<div <div
v-if="!readOnly && !isLocked && isUIAllowed('xcDatatableEditable')" v-if="!readOnly && !isLocked && isUIAllowed('xcDatatableEditable')"
class="flex-1 flex justify-end gap-1 min-h-[30px] items-center" class="flex justify-end gap-1 min-h-[30px] items-center"
> >
<component <component
:is="addIcon" :is="addIcon"

2
packages/nc-gui-v2/components/virtual-cell/HasMany.vue

@ -95,7 +95,7 @@ const unlinkRef = async (rec: Record<string, any>) => {
</span> </span>
</template> </template>
</div> </div>
<div v-if="!isLocked && isUIAllowed('xcDatatableEditable')" class="flex-1 flex justify-end gap-1 min-h-[30px] items-center"> <div v-if="!isLocked && isUIAllowed('xcDatatableEditable')" class="flex justify-end gap-1 min-h-[30px] items-center">
<MdiArrowExpand <MdiArrowExpand
class="select-none transform text-sm nc-action-icon text-gray-500/50 hover:text-gray-500 nc-arrow-expand" class="select-none transform text-sm nc-action-icon text-gray-500/50 hover:text-gray-500 nc-arrow-expand"
@click="childListDlg = true" @click="childListDlg = true"

2
packages/nc-gui-v2/components/virtual-cell/ManyToMany.vue

@ -94,7 +94,7 @@ const unlinkRef = async (rec: Record<string, any>) => {
</template> </template>
</div> </div>
<div v-if="!isLocked && isUIAllowed('xcDatatableEditable')" class="flex-1 flex justify-end gap-1 min-h-[30px] items-center"> <div v-if="!isLocked && isUIAllowed('xcDatatableEditable')" class="flex justify-end gap-1 min-h-[30px] items-center">
<MdiArrowExpand <MdiArrowExpand
class="text-sm nc-action-icon text-gray-500/50 hover:text-gray-500 nc-arrow-expand" class="text-sm nc-action-icon text-gray-500/50 hover:text-gray-500 nc-arrow-expand"
@click="childListDlg = true" @click="childListDlg = true"

3
packages/nc-gui-v2/components/virtual-cell/components/ItemChip.vue

@ -44,7 +44,7 @@ export default {
<template> <template>
<div <div
class="group py-1 px-2 mr-1 my-1 flex items-center bg-blue-100/60 hover:bg-blue-100/40 rounded-[2px]" class="chip group py-1 px-2 mr-1 my-1 flex items-center bg-blue-100/60 hover:bg-blue-100/40 rounded-[2px]"
:class="{ active }" :class="{ active }"
@click="expandedFormDlg = true" @click="expandedFormDlg = true"
> >
@ -74,6 +74,7 @@ export default {
.name { .name {
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
white-space: nowrap;
} }
} }
</style> </style>

Loading…
Cancel
Save