mirror of
https://github.com/KevinMidboe/leifsopplevelser.git
synced 2025-12-08 20:38:46 +00:00
Implemented reoder logic and button for images within edit view.
This commit is contained in:
@@ -78,7 +78,7 @@
|
|||||||
:cols="grid.cols"
|
:cols="grid.cols"
|
||||||
:breakpoints="grid.breakpoints"
|
:breakpoints="grid.breakpoints"
|
||||||
:autoSize="true"
|
:autoSize="true"
|
||||||
:is-draggable="true"
|
:is-draggable="reorder"
|
||||||
:is-resizable="false"
|
:is-resizable="false"
|
||||||
:is-mirrored="false"
|
:is-mirrored="false"
|
||||||
:margin="[10, 10]"
|
:margin="[10, 10]"
|
||||||
@@ -99,6 +99,12 @@
|
|||||||
</grid-layout>
|
</grid-layout>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="tools">
|
||||||
|
<button class="button" @click="reorder = !reorder" v-bind:class="{ active: reorder }">{{reorder ? 'submit' : 'reoder' }}</button>
|
||||||
|
</div>
|
||||||
|
{{ reorder }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -127,6 +133,7 @@ export default {
|
|||||||
showAutocompleted: false,
|
showAutocompleted: false,
|
||||||
selectedPlace: undefined,
|
selectedPlace: undefined,
|
||||||
imageGrid: undefined,
|
imageGrid: undefined,
|
||||||
|
reorder: false,
|
||||||
grid: {
|
grid: {
|
||||||
cols: { lg: 6, md: 5, sm: 4, xs: 3, xxs: 2 },
|
cols: { lg: 6, md: 5, sm: 4, xs: 3, xxs: 2 },
|
||||||
rows: { lg: 216, md: 240, sm: 280, xs: 250, xxs: 150 },
|
rows: { lg: 216, md: 240, sm: 280, xs: 250, xxs: 150 },
|
||||||
@@ -226,6 +233,23 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.tools {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 1rem;
|
||||||
|
right: 1rem;
|
||||||
|
|
||||||
|
> button {
|
||||||
|
border: 2.5px solid #c91119;
|
||||||
|
background-color: white;
|
||||||
|
color: #c91119;
|
||||||
|
|
||||||
|
&:hover, &:active, &:focus, &.active {
|
||||||
|
color: white;
|
||||||
|
background-color: #c91119;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.image-grid {
|
.image-grid {
|
||||||
max-width: 1445px;
|
max-width: 1445px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user