Fix order detail behavior: panel hides when order selected
All checks were successful
Build Docker Image / build (push) Successful in 4m12s

- Changed show-panel to "!selectedOrderId" - panel slides left when order is clicked
- OrderDetailBottomSheet now matches KycBottomSheet structure (full screen, same z-index)
This commit is contained in:
Ruslan Bakiev
2026-01-29 20:47:24 +07:00
parent 532b9ce78d
commit 0a63d4b0b2
2 changed files with 7 additions and 9 deletions

View File

@@ -2,19 +2,17 @@
<Transition name="order-slide"> <Transition name="order-slide">
<div <div
v-if="isOpen && orderUuid" v-if="isOpen && orderUuid"
class="fixed inset-0 z-40 pointer-events-none" class="fixed inset-x-0 bottom-0 z-50 flex flex-col"
style="height: 70vh"
> >
<!-- Backdrop (clickable to close) - only covers map area on desktop --> <!-- Backdrop (clickable to close) -->
<div <div
class="absolute inset-0 lg:left-96 bg-black/30 pointer-events-auto" class="absolute inset-0 -top-[30vh] bg-black/30"
@click="emit('close')" @click="emit('close')"
/> />
<!-- Sheet content - positioned at bottom, above backdrop --> <!-- Sheet content -->
<div <div class="relative flex-1 bg-black/40 backdrop-blur-xl rounded-t-2xl border-t border-white/20 shadow-2xl overflow-hidden">
class="absolute left-0 right-0 lg:left-96 bottom-0 z-50 flex flex-col bg-black/40 backdrop-blur-xl rounded-t-2xl border-t border-white/20 shadow-2xl overflow-hidden pointer-events-auto"
style="height: 70vh"
>
<!-- Header with drag handle and close --> <!-- Header with drag handle and close -->
<div class="sticky top-0 z-10 bg-black/30 backdrop-blur-md border-b border-white/10"> <div class="sticky top-0 z-10 bg-black/30 backdrop-blur-md border-b border-white/10">
<div class="flex justify-center py-2"> <div class="flex justify-center py-2">

View File

@@ -7,7 +7,7 @@
map-id="orders-map" map-id="orders-map"
point-color="#6366f1" point-color="#6366f1"
:hovered-id="hoveredOrderId" :hovered-id="hoveredOrderId"
:show-panel="true" :show-panel="!selectedOrderId"
panel-width="w-96" panel-width="w-96"
:hide-view-toggle="true" :hide-view-toggle="true"
@select="onMapSelect" @select="onMapSelect"