feat(address): side-by-side GoMag|ROA layout, full text, uppercase
- Two-column Bootstrap row layout (col-md-6): GoMag left, ROA right - Removed redundant "ADRESE" section title and "GOMAG"/"ROA" subheaders - Shortened labels: "Livrare:" / "Facturare:" (context clear from layout) - Allow text wrapping (white-space: normal) — no more truncation - text-transform: uppercase on addr-line-text to match ROA style - Cache bust: style.css?v=43, shared.js?v=41 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1217,9 +1217,15 @@ tr.mapping-deleted td {
|
||||
}
|
||||
|
||||
/* Address compact lines */
|
||||
.addr-row {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.addr-row .addr-line-label {
|
||||
width: 72px;
|
||||
}
|
||||
.addr-line {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
padding: 2px 0;
|
||||
font-size: 13px;
|
||||
@@ -1235,9 +1241,9 @@ tr.mapping-deleted td {
|
||||
.addr-line-text {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: normal;
|
||||
word-break: break-word;
|
||||
text-transform: uppercase;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.addr-line .bi-check-lg {
|
||||
|
||||
@@ -988,26 +988,30 @@ function _renderHeaderInfo(order) {
|
||||
|
||||
// Livrare
|
||||
if (addr.livrare_gomag || addr.livrare_roa) {
|
||||
html += addrLine('Livrare GoMag:', addr.livrare_gomag, null);
|
||||
const livrRisk = hasEfacturaRisk(addr.livrare_roa);
|
||||
const livrMatch = addrMatch(addr.livrare_gomag, addr.livrare_roa);
|
||||
let matchType = null;
|
||||
if (addr.livrare_roa) {
|
||||
matchType = livrRisk ? 'risk' : (livrMatch ? 'match' : 'mismatch');
|
||||
}
|
||||
html += addrLine('Livrare ROA:', addr.livrare_roa, matchType);
|
||||
html += '<div class="row addr-row">';
|
||||
html += '<div class="col-md-6">' + addrLine('Livrare:', addr.livrare_gomag, null) + '</div>';
|
||||
html += '<div class="col-md-6">' + addrLine('Livrare:', addr.livrare_roa, matchType) + '</div>';
|
||||
html += '</div>';
|
||||
}
|
||||
|
||||
// Facturare
|
||||
if (addr.facturare_gomag || addr.facturare_roa) {
|
||||
html += addrLine('Facturare GoMag:', addr.facturare_gomag, null);
|
||||
const factRisk = hasEfacturaRisk(addr.facturare_roa);
|
||||
const factMatch = addrMatch(addr.facturare_gomag, addr.facturare_roa);
|
||||
let matchType = null;
|
||||
if (addr.facturare_roa) {
|
||||
matchType = factRisk ? 'risk' : (factMatch ? 'match' : 'mismatch');
|
||||
}
|
||||
html += addrLine('Facturare ROA:', addr.facturare_roa, matchType);
|
||||
html += '<div class="row addr-row">';
|
||||
html += '<div class="col-md-6">' + addrLine('Facturare:', addr.facturare_gomag, null) + '</div>';
|
||||
html += '<div class="col-md-6">' + addrLine('Facturare:', addr.facturare_roa, matchType) + '</div>';
|
||||
html += '</div>';
|
||||
}
|
||||
|
||||
addressLines.innerHTML = html;
|
||||
|
||||
Reference in New Issue
Block a user