inspector: small improvements on help popup
This commit is contained in:
parent
e50eaa49a4
commit
68d6dd1ea4
2 changed files with 36 additions and 8 deletions
|
|
@ -267,12 +267,17 @@ class UiInspector extends UiWidget {
|
|||
new UiModal({closable: true, title: html`<span class="editor-help-title">${name}</span>`, html: true, content: html`
|
||||
<div class="inspector-help">
|
||||
|
||||
<p>Type: <code>${defaultValue.type}</code></p>
|
||||
<p>Default: <code>${JSON.stringify(defaultValue.value)}</code></p>
|
||||
<p>Dynamic: <code>${dynamic ? 'true' : 'false'}</code></p>
|
||||
<p>Computed: <code class="pre">${computedValue}</code></p>
|
||||
|
||||
${htmlHelp}
|
||||
<div class="header">
|
||||
<p>Type: <code>${defaultValue.type}</code></p>
|
||||
<p>Default: <code>${JSON.stringify(defaultValue.value)}</code></p>
|
||||
<p>Dynamic: <code>${dynamic ? 'true' : 'false'}</code></p>
|
||||
</div>
|
||||
<div class="description">
|
||||
${htmlHelp}
|
||||
</div>
|
||||
<div class="computed">
|
||||
<p>Computed value: <code class="pre">${computedValue || "empty"}</code></p>
|
||||
</div>
|
||||
</div>
|
||||
`})
|
||||
|
||||
|
|
|
|||
|
|
@ -269,6 +269,8 @@ osc-inspector-color {
|
|||
padding: 8rem;
|
||||
background: var(--color-background);
|
||||
|
||||
p {
|
||||
}
|
||||
.error {
|
||||
color: red;
|
||||
margin-top: 10rem;
|
||||
|
|
@ -278,7 +280,7 @@ osc-inspector-color {
|
|||
}
|
||||
code {
|
||||
color: var(--color-accent);
|
||||
padding: 1rem 3rem;
|
||||
padding: 4rem;
|
||||
background: rgba(black, 0.2);
|
||||
display: inline-block;
|
||||
user-select: auto;
|
||||
|
|
@ -292,9 +294,30 @@ osc-inspector-color {
|
|||
.pre {
|
||||
white-space: pre;
|
||||
vertical-align: text-top;
|
||||
margin-top: -4rem;
|
||||
position: relative;
|
||||
padding: 5rem;
|
||||
user-select: text;
|
||||
}
|
||||
.help {
|
||||
|
||||
.header p {
|
||||
margin-bottom: 2rem;
|
||||
user-select: text;
|
||||
}
|
||||
.description {
|
||||
border-top: 2rem solid var(--color-ui-background);
|
||||
margin-top: 10rem;
|
||||
padding-top: 10rem;
|
||||
white-space: normal;
|
||||
* {
|
||||
user-select: text;
|
||||
}
|
||||
}
|
||||
|
||||
.computed {
|
||||
border-top: 2rem solid var(--color-ui-background);
|
||||
margin-top: 10rem;
|
||||
padding-top: 10rem;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue