From f181009fa5ec278b9de64d4e9cc7640d40eab350 Mon Sep 17 00:00:00 2001 From: 3dtours Date: Wed, 17 Jun 2026 20:08:28 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20s=E1=BB=ADa=20l=E1=BA=A1i=20c=C3=A1c=20n?= =?UTF-8?q?=C3=BAt=20hi=E1=BB=83n=20th=E1=BB=8B=20tr=C3=AAn=20m=C3=A0n=20h?= =?UTF-8?q?=C3=ACnh=20gom=20l=E1=BA=A1i=20th=C3=A0nh=201=20n=C3=BAt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/ExploreMap.tsx | 12 ++-- frontend/src/pages/TourDetailPage.tsx | 98 +++++++++++++++------------ 2 files changed, 59 insertions(+), 51 deletions(-) diff --git a/frontend/src/pages/ExploreMap.tsx b/frontend/src/pages/ExploreMap.tsx index 58fb0d1..1ab3b25 100644 --- a/frontend/src/pages/ExploreMap.tsx +++ b/frontend/src/pages/ExploreMap.tsx @@ -223,7 +223,7 @@ export const ExploreMap = ({ onBack, onLogout, user, onViewTour, onOpenMyPhotos
{isMapControlsOpen && ( -
+
{/* Nút La bàn / Xoay bản đồ */} @@ -1485,38 +1494,37 @@ export const TourDetailPage = ({ setIsHeadingMode(!isHeadingMode); } }} - className={`p-2.5 rounded-xl transition-all border-t border-gray-100 mt-1 ${isHeadingMode ? 'bg-blue-600 text-white shadow-md' : 'text-gray-500 hover:bg-gray-100'}`} + className={`w-8 h-8 flex items-center justify-center rounded-lg transition-all border-t border-gray-100 mt-0.5 ${isHeadingMode ? 'bg-blue-600 text-white shadow-md' : 'text-gray-500 hover:bg-gray-100'}`} title={isHeadingMode ? "Dừng xoay (Khóa hướng Bắc)" : "Tự động xoay theo hướng di chuyển"} > - + {/* Nút Tìm tôi */} {/* Danh sách lộ trình rút gọn */} {routes.length > 0 && ( -
-
Lộ trình
+
{routes.map((route, idx) => ( ))}
@@ -1881,7 +1889,7 @@ export const TourDetailPage = ({ if (activeTab === 'plan') setIsAddLocationOpen(true); if (activeTab === 'photo' && canUploadPhoto) setIsAddPhotoOpen(true); }} - className="bg-blue-600 text-white px-6 py-3 rounded-full shadow-lg hover:bg-blue-700 transition-all flex items-center font-bold"> + className="bg-blue-600 text-white px-4 py-2.5 rounded-full shadow-lg hover:bg-blue-700 transition-all flex items-center font-bold text-sm"> {activeTab === 'plan' ? 'Thêm địa điểm' : activeTab === 'expense' ? 'Thêm chi phí' : 'Đăng ảnh'}