Skip to content
Snippets Groups Projects
Commit cf15fbcc authored by Kristof De Langhe's avatar Kristof De Langhe
Browse files

68346: Drag-handle in front of row

parent 14ea71f5
No related branches found
No related tags found
No related merge requests found
......@@ -16,8 +16,10 @@
border-top: $table-border-width solid $table-border-color;
}
.drag-handle:hover {
cursor: move;
.drag-handle {
&:hover {
cursor: grab;
}
}
.cdk-drag-preview {
......
......@@ -22,9 +22,9 @@
}">
<ds-item-edit-bitstream [fieldUpdate]="updateValue"
[bundleUrl]="bundle.self">
<button disabled slot="drag-handle" class="drag-handle btn btn-outline-secondary btn-sm" cdkDragHandle>
<div slot="drag-handle" class="drag-handle text-secondary float-left p-1" cdkDragHandle>
<i class="fas fa-grip-vertical fa-fw" [title]="'item.edit.bitstreams.edit.buttons.drag' | translate"></i>
</button>
</div>
</ds-item-edit-bitstream>
</div>
<ng-container *ngVar="(bitstreamsRD$ | async) as bitstreamsRD">
......
<ng-template #bitstreamView>
<div class="col-2 col-md-3 col-lg-4 row-element">
{{ bitstream.name }}
<ng-content select="[slot=drag-handle]"></ng-content>
<div class="float-left">
{{ bitstream.name }}
</div>
</div>
<div class="col-2 col-sm-3 row-element">
{{ bitstream.description }}
......@@ -29,8 +32,6 @@
title="{{'item.edit.bitstreams.edit.buttons.undo' | translate}}">
<i class="fas fa-undo-alt fa-fw"></i>
</button>
<ng-content select="[slot=drag-handle]">
</ng-content>
</div>
</div>
</ng-template>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment