Skip to content

Commit

Permalink
fix: draggable list item overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib committed Nov 25, 2024
1 parent 601ca52 commit 09ea1bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions frontend/src2/components/DraggableList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ function onChange(e) {
v-if="props.showHandle"
class="h-4 w-4 flex-shrink-0 cursor-grab text-gray-500"
/>
<div class="flex flex-1 flex-col justify-center overflow-hidden">
<div class="flex-1 overflow-hidden">
<slot name="item" :item="item" :index="idx">
<div
class="group flex flex-1 cursor-pointer items-center justify-between rounded bg-gray-50 py-1.5 px-2 hover:bg-gray-100"
class="group flex flex-1 cursor-pointer items-center justify-between gap-1 overflow-hidden rounded bg-gray-50 py-1.5 px-2 hover:bg-gray-100"
>
<div class="flex items-center space-x-2">
<div class="flex-1 overflow-hidden">
<slot name="item-content" :item="item" :index="idx">
<div>{{ typeof item === 'object' ? item[itemKey] : item }}</div>
</slot>
</div>
<div class="flex items-center space-x-2">
<div class="flex-shrink-0">
<X
@click.prevent.stop="items.splice(idx, 1)"
class="invisible h-4 w-4 text-gray-600 transition-all hover:text-gray-800 group-hover:visible"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src2/query/components/ColumnsSelectorDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function confirmSelection() {
<template #item-content="{ item }">
<div class="flex items-center gap-1.5">
<DataTypeIcon :columnType="item.type" />
<span>{{ item.name }}</span>
<span class="truncate">{{ item.name }}</span>
</div>
</template>
</DraggableList>
Expand Down

0 comments on commit 09ea1bb

Please sign in to comment.