Fix order detail behavior: panel hides when order selected
All checks were successful
Build Docker Image / build (push) Successful in 4m12s
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:
@@ -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">
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user