8000 fix: draggable list item overflow · frappe/insights@72c54cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 72c54cd

Browse files
fix: draggable list item overflow
1 parent d7cab9a commit 72c54cd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

frontend/src2/components/DraggableList.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ function onChange(e) {
4141
v-if="props.showHandle"
4242
class="h-4 w-4 flex-shrink-0 cursor-grab text-gray-500"
4343
/>
44-
<div class="flex flex-1 flex-col justify-center overflow-hidden">
44+
<div class="flex-1 overflow-hidden">
4545
<slot name="item" :item="item" :index="idx">
4646
8000 <div
47-
class="group flex flex-1 cursor-pointer items-center justify-between rounded bg-gray-50 py-1.5 px-2 hover:bg-gray-100"
47+
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"
4848
>
49-
<div class="flex items-center space-x-2">
49+
<div class="flex-1 overflow-hidden">
5050
<slot name="item-content" :item="item" :index="idx">
5151
<div>{{ typeof item === 'object' ? item[itemKey] : item }}</div>
5252
</slot>
5353
</div>
54-
<div class="flex items-center space-x-2">
54+
<div class="flex-shrink-0">
5555
<X
5656
@click.prevent.stop="items.splice(idx, 1)"
5757
class="invisible h-4 w-4 text-gray-600 transition-all hover:text-gray-800 group-hover:visible"

frontend/src2/query/components/ColumnsSelectorDialog.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function confirmSelection() {
108108
<template #item-content="{ item }">
109109
<div class="flex items-center gap-1.5">
110110
<DataTypeIcon :columnType="item.type" />
111-
<span>{{ item.name }}</span>
111+
<span class="truncate">{{ item.name }}</span>
112112
</div>
113113
</template>
114114
</DraggableList>

0 commit comments

Comments
 (0)
0