Commit 260ebf37 authored by Nikita Podguzov's avatar Nikita Podguzov Committed by Commit Bot

Policy: Add space character to chrome://policy page statuses

This improves chrome://policy page readability.

Screenshot of new chrome://policy page UI:
https://screenshot.googleplex.com/3W4hzapHNNCqttn

Bug: 1121478
Change-Id: Iee2d059d35cc00057bf5f3bfed9fa352ba8a7d1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2414257
Commit-Queue: Nikita Podguzov <nikitapodguzov@chromium.org>
Reviewed-by: default avatarJulian Pastarmov <pastarmovj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#807929}
parent 1f9b9db0
......@@ -115,6 +115,10 @@ fieldset + fieldset {
margin-inline-start: 20px;
}
div.status-entry * {
white-space: pre-wrap
}
div.status-entry:not([hidden]) {
display: flex;
margin-bottom: .8em;
......
......@@ -90,7 +90,7 @@ cr.define('policy', function() {
*/
setLabelAndShow_(labelName, labelValue, needsToBeShown = true) {
const labelElement = this.querySelector(labelName);
labelElement.textContent = labelValue || '';
labelElement.textContent = labelValue ? ' ' + labelValue : '';
if (needsToBeShown) {
labelElement.parentElement.hidden = false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment