11<script setup lang="ts">
2- import { onLongPress , useScroll } from ' @vueuse/core'
2+ import { onLongPress } from ' @vueuse/core'
33
44const { location, snap } = defineProps <{
55 location: LocationDetailResponse
@@ -12,14 +12,6 @@ const emit = defineEmits<{
1212
1313const { t, locale } = useI18n ()
1414
15- // Scroll container ref and scroll state
16- const scrollContainer = useTemplateRef <HTMLElement >(' scrollContainer' )
17- const { y : scrollY, arrivedState } = useScroll (scrollContainer )
18-
19- // Mask visibility based on scroll position
20- const showTopMask = computed (() => scrollY .value > 0 )
21- const showBottomMask = computed (() => ! arrivedState .bottom )
22-
2315// Simple derived values
2416const primaryCategory = computed (() => location .primaryCategory ?? location .categories ?.[0 ] ?? null )
2517const hasRating = computed (() => location .rating && location .ratingCount )
@@ -106,12 +98,8 @@ const { addressRef, showCopiedTooltip } = useAddressCopy()
10698
10799<template >
108100 <div bg-neutral-0 w-full h-full relative of-hidden flex =" ~ col" >
109- <!-- Scroll masks for fade effect -->
110- <div v-show =" showTopMask" pointer-events-none absolute inset-x-0 top-0 h-32 z-10 bg-gradient-to-b from-white to-transparent />
111- <div v-show =" showBottomMask && isCompact" pointer-events-none absolute inset-x-0 bottom-0 h-32 z-10 bg-gradient-to-t from-white to-transparent />
112-
113101 <!-- Scrollable content -->
114- <div ref = " scrollContainer " of-y-auto of-x-hidden flex-1 :class =" isCompact ? 'max-h-[calc(450px-32px)]' : ''" >
102+ <div of-y-auto of-x-hidden flex-1 :class =" isCompact ? 'max-h-[calc(450px-32px)]' : ''" >
115103 <header bg-neutral-0 relative f-px-md >
116104 <!-- Close Button -->
117105 <div flex =" ~ shrink-0 gap-8" right-16 top-4 absolute z-20 >
0 commit comments