UI: fix config raw-toggle button sizing and semantic markup

This commit is contained in:
Val Alexander
2026-03-18 00:14:11 -05:00
parent 0a57b507d5
commit b4fc741c3d
2 changed files with 10 additions and 4 deletions

View File

@@ -715,6 +715,13 @@
line-height: 1.55;
}
.config-raw-toggle {
width: 32px;
height: 32px;
padding: 6px !important;
min-width: 32px;
}
/* Loading State */
.config-loading {
display: flex;

View File

@@ -1060,7 +1060,7 @@ export function renderConfig(props: ConfigProps) {
`
: nothing
}
<label class="field config-raw-field">
<div class="field config-raw-field">
<span style="display:flex;align-items:center;gap:8px;">
Raw JSON5
${
@@ -1068,8 +1068,7 @@ export function renderConfig(props: ConfigProps) {
? html`
<span class="pill pill--sm">${sensitiveCount} secret${sensitiveCount === 1 ? "" : "s"} ${blurred ? "redacted" : "visible"}</span>
<button
class="btn btn--icon ${blurred ? "" : "active"}"
style="width:28px;height:28px;padding:0;"
class="btn btn--icon config-raw-toggle ${blurred ? "" : "active"}"
title=${
blurred ? "Reveal sensitive values" : "Hide sensitive values"
}
@@ -1098,7 +1097,7 @@ export function renderConfig(props: ConfigProps) {
props.onRawChange((e.target as HTMLTextAreaElement).value);
}}
></textarea>
</label>
</div>
`;
})()
}