diff --git a/admin/frontend/profiles.html b/admin/frontend/profiles.html index 3b128f7..0a588e6 100644 --- a/admin/frontend/profiles.html +++ b/admin/frontend/profiles.html @@ -90,9 +90,8 @@ header.navbar{padding-top:2px!important;padding-bottom:2px!important} /* Admitted/interactive counts -- compact badge in card header */ .profile-admit-badge{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:.82rem} /* Promoted definition rows -- larger/brighter than the old .78rem muted styling */ -.profile-field-label{color:var(--tblr-secondary);font-size:.8rem;font-weight:600;letter-spacing:.01em} +.profile-field-label{color:var(--tblr-secondary);font-size:.8rem;font-weight:600;letter-spacing:.01em;overflow-wrap:break-word} .profile-field-val{color:rgba(255,255,255,.8);font-size:.92rem} -.profile-zero-alert{margin-left:auto} /* Coverage note -- compact key:value row */ .profile-coverage{font-size:.78rem;color:var(--tblr-secondary);margin-bottom:.5rem;line-height:1.3} .profile-coverage .profile-field-label{font-size:.76rem;font-weight:500;letter-spacing:normal} @@ -469,8 +468,9 @@ function formatDefinition(def) { } else if (typeof val === 'object') { try { val = JSON.stringify(val); } catch (_) { val = String(val); } } + const displayKey = escapeHtml(key).replace(/_/g, '_\u200b'); return `
-
${escapeHtml(key)}
+
${displayKey}
${escapeHtml(String(val))}
`; }).join(''); @@ -544,12 +544,11 @@ function renderProfiles(profiles) {

${escapeHtml(String(p.name || '—'))}

-
${admitBadge}${zeroBadge}
- -
-
${sourceBadge(p.source)} ${readonlyHint}
${actions}
+
+ ${admitBadge}${zeroBadge}${sourceBadge(p.source)}${readonlyHint} +
${formatDefinition(p.definition)}