Skip to content

Commit c32806e

Browse files
committed
fix: lint errors and minor style tweaks
1 parent beed0cd commit c32806e

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

app/components/CountryBubbles.vue

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ const BUBBLE_PADDING = 8
2424
const BUBBLE_WIDTH = 160
2525
const BUBBLE_HEIGHT = 56
2626
27-
const { mapInstance, flyTo, viewCenter, zoom } = useMapControls()
28-
const { locationCount, clusterCount } = useVisibleLocations()
27+
const { mapInstance, flyTo, viewCenter } = useMapControls()
28+
useVisibleLocations()
2929
const { width: windowWidth, height: windowHeight } = useWindowSize()
3030
3131
// Fetch country counts (cached)
@@ -41,10 +41,6 @@ const markers = new Map<CountryCode, Marker>()
4141
// Hide bubbles during fly animation
4242
const isFlying = ref(false)
4343
44-
// At zoom 9+, individual location pins are visible - never show bubbles
45-
// This prevents race condition where queryRenderedFeatures returns 0 while tiles are loading on slow devices
46-
const MIN_ZOOM_FOR_PINS = 9
47-
4844
// Check if a point is within current map viewport
4945
function isPointInViewport(point: { lat: number, lng: number }): boolean {
5046
if (!mapInstance.value)
@@ -97,8 +93,8 @@ const showBubbles = computed(() => {
9793
if (isFlying.value)
9894
return false
9995
100-
// Touch reactive deps to trigger re-evaluation when map moves
101-
// eslint-disable-next-line no-unused-expressions
96+
// Touch reactive dep to trigger re-evaluation when map moves
97+
// eslint-disable-next-line ts/no-unused-expressions
10298
viewCenter.value
10399
104100
// Only show bubbles when outside ALL country bounds

app/components/LocationDrawer.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ function handleClose() {
8181
/>
8282
<DrawerContent flex="~ col" shadow="[0_-4px_24px_rgba(0,0,0,0.1)]" max-h="[calc(100dvh-env(safe-area-inset-top))]" outline-none rounded-t-12 bg-neutral-0 h-full w-full inset-x-0 bottom-0 fixed z-80>
8383
<!-- Handle and close button - absolutely positioned, overlay content -->
84-
<div flex="~ items-center justify-center" top-0 left-0 right-0 pt-8 z-10 absolute pointer-events-none>
85-
<DrawerHandle bg-neutral-400 rounded-full h-6 w-40 pointer-events-auto />
86-
<button bg="neutral-500 hocus:neutral-600" stack rounded-full shrink-0 size-24 transition-colors top-12 right-12 pointer-events-auto absolute @click.stop="handleClose">
84+
<div flex="~ items-center justify-center" pt-8 pointer-events-none left-0 right-0 top-0 absolute z-10>
85+
<DrawerHandle rounded-full bg-neutral-400 h-6 w-40 pointer-events-auto />
86+
<button bg="neutral-500 hocus:neutral-600" stack rounded-full shrink-0 size-24 pointer-events-auto transition-colors right-12 top-12 absolute @click.stop="handleClose">
8787
<Icon name="i-nimiq:cross-bold" text-neutral-0 size-10 />
8888
</button>
8989
</div>

app/components/LocationDrawerContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const { addressRef, showCopiedTooltip } = useAddressCopy()
9595
<template>
9696
<div h-full w-full relative of-hidden flex="~ col">
9797
<!-- Scrollable content -->
98-
<div bg-neutral-0 flex-1 rounded-t-20 of-x-hidden of-y-auto :class="isCompact ? 'max-h-450px' : ''">
98+
<div rounded-t-12 bg-neutral-0 flex-1 of-x-hidden of-y-auto :class="isCompact ? 'max-h-450px' : ''">
9999
<header pt-20 bg-neutral-0 relative f-px-md>
100100
<!-- Title -->
101101
<h2 leading-tight font-bold my-0 pr-40 line-clamp-2 text="f-xl neutral">

app/components/PhotoCarousel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const availablePhotos = computed(() => Array.from({ length: MAX_PHOTOS }, (_, i)
2121
:src="`/blob/location/${uuid}/${photoIndex}`"
2222
:alt="t('photo.alt', { number: photoIndex + 1 })"
2323
:loading="i === 0 ? 'eager' : 'lazy'"
24-
shrink-0 w-280 aspect-1.2 object-cover snap-center f-rounded-lg outline="1.5 offset--1.5 white/14"
24+
rounded-6 shrink-0 w-280 object-cover snap-center outline="1.5 offset--1.5 white/14"
2525
@error="onError(photoIndex)"
2626
>
2727
</div>

0 commit comments

Comments
 (0)