mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-07 11:39:00 +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;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
padding: 8px 12px;
|
padding: 10px 12px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-bottom: 1px solid #f0f0f0;
|
border-bottom: 1px solid #f0f0f0;
|
||||||
}
|
}
|
||||||
|
|
@ -524,11 +524,18 @@
|
||||||
background: #e6f0ff;
|
background: #e6f0ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.woDispatchVendorItem input[type="checkbox"] {
|
||||||
|
flex-shrink: 0;
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.woDispatchVendorInfo {
|
.woDispatchVendorInfo {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 1px;
|
gap: 1px;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.woDispatchVendorName {
|
.woDispatchVendorName {
|
||||||
|
|
@ -541,16 +548,33 @@
|
||||||
color: #007bff;
|
color: #007bff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.woDispatchVendorMeta {
|
.woDispatchVendorAddr {
|
||||||
display: flex;
|
|
||||||
gap: 8px;
|
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
.woDispatchVendorDist {
|
.woDispatchVendorDistBadge {
|
||||||
font-weight: 600;
|
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;
|
color: #007bff;
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.woDispatchDistLabel {
|
||||||
|
font-size: 10px;
|
||||||
|
color: #999;
|
||||||
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.woDispatchLoading {
|
.woDispatchLoading {
|
||||||
|
|
|
||||||
|
|
@ -231,11 +231,14 @@ function DispatchModal({ wo, onClose, onDispatched }) {
|
||||||
<div className="woDispatchVendorInfo">
|
<div className="woDispatchVendorInfo">
|
||||||
<span className="woDispatchVendorName">{v.companyName}</span>
|
<span className="woDispatchVendorName">{v.companyName}</span>
|
||||||
{v.tradeSpecialties && <span className="woDispatchVendorTrades">{v.tradeSpecialties}</span>}
|
{v.tradeSpecialties && <span className="woDispatchVendorTrades">{v.tradeSpecialties}</span>}
|
||||||
<span className="woDispatchVendorMeta">
|
{v.address && <span className="woDispatchVendorAddr">{v.address}</span>}
|
||||||
{v.address && <span>{v.address}</span>}
|
|
||||||
{v.distanceMiles != null && <span className="woDispatchVendorDist">{v.distanceMiles} mi</span>}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
{v.distanceMiles != null && (
|
||||||
|
<div className="woDispatchVendorDistBadge">
|
||||||
|
<span className="woDispatchDistNum">{v.distanceMiles}</span>
|
||||||
|
<span className="woDispatchDistLabel">miles</span>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</label>
|
</label>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue