mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-02 03:53:13 +00:00
Redesign vendor item layout in dispatch modal
- Checkbox on the left, vendor info in the middle, distance badge on the right - Distance shown as large blue number with "miles" label in a rounded badge - Vendor address on its own line below trades
This commit is contained in:
parent
2769dc23ba
commit
7bb5133523
2 changed files with 37 additions and 10 deletions
|
|
@ -507,7 +507,7 @@
|
|||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 12px;
|
||||
padding: 10px 12px;
|
||||
cursor: pointer;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
}
|
||||
|
|
@ -524,11 +524,18 @@
|
|||
background: #e6f0ff;
|
||||
}
|
||||
|
||||
.woDispatchVendorItem input[type="checkbox"] {
|
||||
flex-shrink: 0;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.woDispatchVendorInfo {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1px;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.woDispatchVendorName {
|
||||
|
|
@ -541,16 +548,33 @@
|
|||
color: #007bff;
|
||||
}
|
||||
|
||||
.woDispatchVendorMeta {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
.woDispatchVendorAddr {
|
||||
font-size: 11px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.woDispatchVendorDist {
|
||||
font-weight: 600;
|
||||
.woDispatchVendorDistBadge {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
min-width: 60px;
|
||||
padding: 4px 8px;
|
||||
background: #f0f7ff;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.woDispatchDistNum {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
color: #007bff;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.woDispatchDistLabel {
|
||||
font-size: 10px;
|
||||
color: #999;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.woDispatchLoading {
|
||||
|
|
|
|||
|
|
@ -231,11 +231,14 @@ function DispatchModal({ wo, onClose, onDispatched }) {
|
|||
<div className="woDispatchVendorInfo">
|
||||
<span className="woDispatchVendorName">{v.companyName}</span>
|
||||
{v.tradeSpecialties && <span className="woDispatchVendorTrades">{v.tradeSpecialties}</span>}
|
||||
<span className="woDispatchVendorMeta">
|
||||
{v.address && <span>{v.address}</span>}
|
||||
{v.distanceMiles != null && <span className="woDispatchVendorDist">{v.distanceMiles} mi</span>}
|
||||
</span>
|
||||
{v.address && <span className="woDispatchVendorAddr">{v.address}</span>}
|
||||
</div>
|
||||
{v.distanceMiles != null && (
|
||||
<div className="woDispatchVendorDistBadge">
|
||||
<span className="woDispatchDistNum">{v.distanceMiles}</span>
|
||||
<span className="woDispatchDistLabel">miles</span>
|
||||
</div>
|
||||
)}
|
||||
</label>
|
||||
))}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue