Studio: UX improvements after usertest

This commit is contained in:
Pieter Vander Vennet 2023-10-22 01:30:05 +02:00
parent 44c1548e89
commit a9bfe4f37b
11 changed files with 173 additions and 122 deletions

View file

@ -21,7 +21,15 @@
const isTranslation = schema.hints.typehint === "translation" || schema.hints.typehint === "rendered" || ConfigMetaUtils.isTranslation(schema);
let type = schema.hints.typehint ?? "string";
let rendervalue = schema.type === "boolean" ? undefined : ((schema.hints.inline ?? schema.path.join(".")) + " <b>{translated(value)}</b>");
let rendervalue = ((schema.hints.inline ?? schema.path.join(".")) + " <b>{translated(value)}</b>");
if(schema.type === "boolean"){
rendervalue = undefined
}
if(schema.hints.typehint === "tag") {
rendervalue = "{tags()}"
}
let helperArgs = schema.hints.typehelper?.split(",");
let inline = schema.hints.inline !== undefined;
if (isTranslation) {
@ -165,7 +173,7 @@
{/each}
{/if}
{#if window.location.hostname === "127.0.0.1"}
<span class="subtle">{schema.path.join(".")}</span>
<span class="subtle">{schema.path.join(".")} {schema.hints.typehint}</span>
{/if}
</div>
{/if}