Skip to content

Commit 2caf72c

Browse files
committed
fix order tracking UI alignment
1 parent f530973 commit 2caf72c

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

frontend/src/components/AccountModal.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,10 @@ const AccountModal = ({ user, onClose, onLogout, orders, onCancelOrder }) => {
141141
<div className="od-tracking">
142142
{TRACKING_STEPS.map((step, i) => (
143143
<div key={step} className="track-step">
144-
<div className={`track-dot ${i === 0 ? 'active' : ''}`} />
145-
{i < TRACKING_STEPS.length - 1 && <div className="track-line" />}
144+
<div className="track-left">
145+
<div className={`track-dot ${i === 0 ? 'active' : ''}`} />
146+
{i < TRACKING_STEPS.length - 1 && <div className="track-line" />}
147+
</div>
146148
<div className="track-info">
147149
<p className={`track-label ${i === 0 ? 'active' : ''}`}>{step}</p>
148150
{i === 0 && <p className="track-date">{formatDate(selectedOrder.placedAt)}</p>}

frontend/src/index.css

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,13 +1156,14 @@ ul {
11561156
.od-cancel-btn:hover { border-color: #e85d04; color: #e85d04; }
11571157

11581158
/* Tracking */
1159-
.od-tracking { display: flex; flex-direction: column; padding: 8px 0; }
1160-
.track-step { display: flex; gap: 14px; }
1161-
.track-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #ddd; background: #fff; flex-shrink: 0; margin-top: 3px; }
1162-
.track-dot.active { background: #e85d04; border-color: #e85d04; }
1163-
.track-line { width: 2px; height: 36px; background: #eee; margin-left: 6px; }
1164-
.track-info { padding-bottom: 8px; }
1165-
.track-label { font-size: 13px; font-weight: 600; color: #aaa; }
1159+
.od-tracking { display: flex; flex-direction: column; padding: 12px 0; }
1160+
.track-step { display: flex; align-items: flex-start; gap: 16px; }
1161+
.track-left { display: flex; flex-direction: column; align-items: center; width: 18px; flex-shrink: 0; }
1162+
.track-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #ddd; background: #fff; flex-shrink: 0; }
1163+
.track-dot.active { background: #e85d04; border-color: #e85d04; box-shadow: 0 0 0 4px rgba(232,93,4,0.12); }
1164+
.track-line { width: 2px; height: 36px; background: #eee; margin: 0 auto; }
1165+
.track-info { padding-bottom: 4px; flex: 1; }
1166+
.track-label { font-size: 14px; font-weight: 600; color: #bbb; line-height: 1.6; }
11661167
.track-label.active { color: #1a1a1a; font-weight: 800; }
11671168
.track-date { font-size: 12px; color: #aaa; margin-top: 2px; }
11681169
.od-cancelled-badge { color: #dc2626; font-weight: 700; font-size: 14px; padding: 12px 0; }

0 commit comments

Comments
 (0)