diff --git a/NOTE_BOARD.md b/NOTE_BOARD.md index f586e0a..23262c5 100644 --- a/NOTE_BOARD.md +++ b/NOTE_BOARD.md @@ -1,7 +1,7 @@ # To AI Agent: Fix Overlapping Text and Layout Overflow in MyNotePage Note Cards ## 1. Context & Layout Bug Analysis -We are fixing a severe rendering and layout bug inside the Note Card component of `MyNotePage.tsx` as captured in `image_8a449e.png`: +We are fixing a severe rendering and layout bug inside the Note Card component of `MyNotePage.tsx` as captured in `image.png`: - **Bug 1 (Chữ đè chồng lên nhau):** The text lines inside the note body (headings, dates, journal contents) are collapsing vertically and rendering directly on top of each other. This is caused by rogue `absolute` positioning or a broken flex/grid system on inner content elements. - **Bug 2 (Tràn ra khỏi Board chứa):** Long text strings (such as resolved address lines with "Đà Nẵng, Vietnam" or "Tuy Hòa, Phú Yên") are breaking out horizontally and vertically beyond the rounded border bounds of the card. diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 842cd4a..0390197 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -45,6 +45,7 @@ services: SMTP_SECURE: "${SMTP_SECURE}" SMTP_USER: "${SMTP_USER}" SMTP_PASS: "${SMTP_PASS}" + TZ: "Asia/Ho_Chi_Minh" depends_on: postgres: condition: service_healthy diff --git a/frontend/src/components/ItineraryTimeline.tsx b/frontend/src/components/ItineraryTimeline.tsx index 744b440..1243d0c 100644 --- a/frontend/src/components/ItineraryTimeline.tsx +++ b/frontend/src/components/ItineraryTimeline.tsx @@ -472,7 +472,7 @@ export const ItineraryTimeline = ({ e.stopPropagation(); onQuickNote({ legId: leg.id, location, leg }); }} - className="p-1.5 text-yotripLight-steel hover:text-yotripLight-text dark:text-yotripDark-muted dark:hover:text-yotripDark-lime rounded-lg hover:bg-gray-100 dark:hover:bg-yotripDark-surface-muted transition-colors duration-200" + className="flex items-center gap-1 px-2 py-1 bg-gray-50 hover:bg-blue-50 text-gray-400 hover:text-blue-600 rounded-lg text-[10px] font-bold transition-all border border-gray-100 hover:border-blue-100" title="Ghi chú nhanh" > diff --git a/frontend/src/pages/MyNotePage.tsx b/frontend/src/pages/MyNotePage.tsx index 4c8806a..23030ea 100644 --- a/frontend/src/pages/MyNotePage.tsx +++ b/frontend/src/pages/MyNotePage.tsx @@ -443,7 +443,7 @@ export const MyNotePage = ({ tourId, onBack }: { tourId: string; onBack: () => v