From b971391fd7a8c1bde732b833937a53cf1a1be746 Mon Sep 17 00:00:00 2001
From: Ruslan Bakiev <572431+veikab@users.noreply.github.com>
Date: Fri, 6 Feb 2026 16:52:48 +0700
Subject: [PATCH] Add hover pin to info panel cards
---
app/components/catalog/InfoPanel.vue | 91 +++++++++++++++++++++-------
app/pages/catalog/index.vue | 1 +
2 files changed, 69 insertions(+), 23 deletions(-)
diff --git a/app/components/catalog/InfoPanel.vue b/app/components/catalog/InfoPanel.vue
index bd17d96..bf69bad 100644
--- a/app/components/catalog/InfoPanel.vue
+++ b/app/components/catalog/InfoPanel.vue
@@ -111,14 +111,25 @@
{{ $t('catalog.empty.noProducts') }}
-
+ class="relative group"
+ >
+
+
+
@@ -169,13 +180,24 @@
{{ $t('catalog.info.noSuppliers') }}
-
+ class="relative group"
+ >
+
+
+
@@ -202,14 +224,25 @@
{{ $t('catalog.info.railHubs') }}
-
+ class="relative group"
+ >
+
+
+
@@ -223,14 +256,25 @@
{{ $t('catalog.info.seaHubs') }}
-
+ class="relative group"
+ >
+
+
+
@@ -277,6 +321,7 @@ const props = defineProps<{
const emit = defineEmits<{
'close': []
'add-to-filter': []
+ 'pin': [type: 'product' | 'supplier' | 'hub', item: { uuid?: string | null; name?: string | null }]
'open-info': [type: InfoEntityType, uuid: string]
'select-product': [uuid: string | null]
'select-offer': [offer: { uuid: string; productUuid?: string | null }]
diff --git a/app/pages/catalog/index.vue b/app/pages/catalog/index.vue
index 96cc903..5ab9d40 100644
--- a/app/pages/catalog/index.vue
+++ b/app/pages/catalog/index.vue
@@ -56,6 +56,7 @@
:loading-offers="isLoadingOffers"
@close="onInfoClose"
@add-to-filter="onInfoAddToFilter"
+ @pin="onPinItem"
@open-info="onInfoOpenRelated"
@select-product="onInfoSelectProduct"
@select-offer="onSelectOffer"