LibWebView: Show the advanced config title above its full key path
Subjective, but this reads slightly better.
This commit is contained in:
parent
d089def7e4
commit
d41099d204
2 changed files with 8 additions and 7 deletions
|
|
@ -285,13 +285,14 @@
|
|||
.config-name {
|
||||
font-family: monospace;
|
||||
font-size: 13px;
|
||||
|
||||
margin-top: 6px;
|
||||
|
||||
opacity: 0.7;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.config-title {
|
||||
margin-top: 6px;
|
||||
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -68,21 +68,21 @@ function createRow(variable) {
|
|||
row.classList.add("inline-container");
|
||||
row.dataset.filterText = `${variable.name} ${variable.title} ${variable.description}`.toLowerCase();
|
||||
|
||||
const name = document.createElement("p");
|
||||
name.classList.add("config-name");
|
||||
name.textContent = variable.name;
|
||||
|
||||
const title = document.createElement("p");
|
||||
title.classList.add("config-title");
|
||||
title.textContent = variable.title;
|
||||
|
||||
const name = document.createElement("p");
|
||||
name.classList.add("config-name");
|
||||
name.textContent = variable.name;
|
||||
|
||||
const description = document.createElement("p");
|
||||
description.classList.add("description");
|
||||
description.textContent = variable.description;
|
||||
|
||||
const label = document.createElement("label");
|
||||
label.htmlFor = variable.name;
|
||||
label.append(name, title, description);
|
||||
label.append(title, name, description);
|
||||
|
||||
row.append(label, createControl(variable));
|
||||
return row;
|
||||
|
|
|
|||
Loading…
Reference in a new issue