Skip to content

Commit

Permalink
make whole ContentItem draggable
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Mar 15, 2024
1 parent 86fcb4d commit 694958b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/components/History/Content/ContentItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,12 @@ function unexpandedClick(event: Event) {
:data-state="dataState"
tabindex="0"
role="button"
draggable
@dragstart="onDragStart"
@dragend="onDragEnd"
@keydown="onKeyDown">
<!-- eslint-disable-next-line vuejs-accessibility/click-events-have-key-events, vuejs-accessibility/no-static-element-interactions -->
<div class="p-1 cursor-pointer" draggable @dragstart="onDragStart" @dragend="onDragEnd" @click.stop="onClick">
<div class="p-1 cursor-pointer" @click.stop="onClick">
<div class="d-flex justify-content-between">
<span class="p-1" data-description="content item header info">
<BButton v-if="selectable" class="selector p-0" @click.stop="emit('update:selected', !selected)">
Expand Down

0 comments on commit 694958b

Please sign in to comment.