Skip to content

Commit

Permalink
chore: fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
claustres committed Aug 14, 2024
1 parent ff24337 commit 1185fd4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions core/client/components/collection/KGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
:contextId="contextId"
:is="itemRenderer"
v-bind="renderer"
@item-selected="onItemSelected"
@item-selected="onItemSelected"
/>
</div>
</template>
Expand Down Expand Up @@ -97,7 +97,7 @@
</template>

<script setup>
import { ref, computed, watch, toRefs, onBeforeMount, onBeforeUnmount } from 'vue'
import { computed, watch, toRefs, onBeforeMount, onBeforeUnmount } from 'vue'
import { useCollection } from '../../composables'
import { Events } from '../../events.js'
import { loadComponent } from '../../utils'
Expand Down
10 changes: 5 additions & 5 deletions core/client/components/layout/KPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
:content="page.components"
class="fit"
/>
</slot>
</slot>
</div>
<!--
Custom stickies
-->
<template v-for="sticky in stickies.components" :key="sticky.id">
<q-page-sticky
<q-page-sticky
:id="sticky.id"
:position="getStickyPosition(sticky)"
:position="getStickyPosition(sticky)"
:offset="getStickyOffset(sticky)"
class="k-sticky-z-index"
>
Expand Down Expand Up @@ -277,11 +277,11 @@ function layoutOffsetListener (offset) {
return { minHeight: offset ? `calc(100vh - ${offset}px)` : '100vh' }
}
function getStickyPosition (sticky) {
if (sticky.position === 'center' ) return 'top'
if (sticky.position === 'center') return 'top'
return sticky.position
}
function getStickyOffset (sticky) {
if (sticky.position === 'center' ) {
if (sticky.position === 'center') {
const heightPageOffset = page.size[1] / 2
const heightSizeOffset = sticky.size ? sticky.size[1] / 2 : sticky.height ? sticky.height / 2 : 0
const heightOffset = heightPageOffset - heightSizeOffset
Expand Down
1 change: 0 additions & 1 deletion map/client/components/KPositionIndicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,3 @@ export default {
}
}
</script>

0 comments on commit 1185fd4

Please sign in to comment.