Skip to content

Commit 6f7fd51

Browse files
widgets: Make entire left side of collapsible iframe title bar draggable
Closes #2551
1 parent 84d5d1a commit 6f7fd51

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

src/components/widgets/IFrame.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,19 @@
1111
>
1212
<div class="flex flex-col justify-start items-center h-auto pt-2 cursor-pointer">
1313
<div class="flex justify-between w-full h-[25px] px-2">
14-
<v-icon class="cursor-grab opacity-40" @mousedown="enableMovingOnDrag" @mouseup="disableMovingOnDrag">
15-
mdi-drag
16-
</v-icon>
17-
<div class="select-none">
18-
{{ widget.options.containerName }}
14+
<div
15+
class="flex items-center gap-1 flex-1 min-w-0 cursor-grab select-none"
16+
@mousedown="enableMovingOnDrag"
17+
@mouseup="disableMovingOnDrag"
18+
>
19+
<v-icon class="opacity-40 flex-shrink-0">mdi-drag</v-icon>
20+
<span class="flex-1 text-center truncate">{{ widget.options.containerName }}</span>
1921
</div>
2022
<v-btn
2123
:icon="widget.options.startCollapsed ? 'mdi-chevron-down' : 'mdi-chevron-up'"
2224
variant="text"
2325
size="36"
24-
class="mt-[-6px] opacity-60"
26+
class="mt-[-6px] opacity-60 flex-shrink-0"
2527
@click="widget.options.startCollapsed = !widget.options.startCollapsed"
2628
/>
2729
</div>

0 commit comments

Comments
 (0)