Collection form: small tweaks for mobile view
This commit is contained in:
@@ -58,7 +58,6 @@ function onPointerMove(e) {
|
|||||||
if (initialGrabPosition.value == null) {
|
if (initialGrabPosition.value == null) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
e.preventDefault()
|
|
||||||
draggedPosition.value = e.pageY - initialGrabPosition.value
|
draggedPosition.value = e.pageY - initialGrabPosition.value
|
||||||
emit('grabbing', draggedPosition.value)
|
emit('grabbing', draggedPosition.value)
|
||||||
}
|
}
|
||||||
@@ -75,13 +74,13 @@ function onPointerMove(e) {
|
|||||||
"
|
"
|
||||||
ref="collectionitembox"
|
ref="collectionitembox"
|
||||||
class="collectionitembox"
|
class="collectionitembox"
|
||||||
@pointermove="onPointerMove"
|
@pointermove.prevent="onPointerMove"
|
||||||
@pointerup="onPointerUp"
|
@pointerup="onPointerUp"
|
||||||
@pointerleave="clearGrabVariables"
|
@pointerleave="clearGrabVariables"
|
||||||
>
|
>
|
||||||
<BookListElement v-bind="props.book">
|
<BookListElement v-bind="props.book">
|
||||||
<template v-slot:left>
|
<template v-slot:left>
|
||||||
<div class="is-hidden-desktop align-right">
|
<div class="is-hidden-desktop mobile-delete">
|
||||||
<div @click="$emit('delete')" class="centered closebtn clickable">
|
<div @click="$emit('delete')" class="centered closebtn clickable">
|
||||||
<b-icon-x />
|
<b-icon-x />
|
||||||
</div>
|
</div>
|
||||||
@@ -182,14 +181,16 @@ function onPointerMove(e) {
|
|||||||
font-size: 36px;
|
font-size: 36px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.align-right {
|
.mobile-delete {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
|
height: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1024px) {
|
@media (max-width: 1024px) {
|
||||||
.positionwidget {
|
.positionwidget {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
margin-left: 0px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { getImagePathOrDefault } from './api.js'
|
import { getImagePathOrDefault } from './api.js'
|
||||||
import { useTemplateRef, onMounted } from 'vue'
|
import { useTemplateRef } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
|
|
||||||
const emit = defineEmits(['delete'])
|
const emit = defineEmits(['delete'])
|
||||||
|
|||||||
Reference in New Issue
Block a user