some further ux updates

This commit is contained in:
Peter Clement 2025-01-28 15:51:10 +00:00
parent 9530235844
commit a100099cd3
1 changed files with 21 additions and 17 deletions

View File

@ -212,7 +212,7 @@
} }
const handleStateKeySelect = (key: CustomEvent) => { const handleStateKeySelect = (key: CustomEvent) => {
if (!key.detail) { if (!key.detail && keyOptions.length > 0) {
throw new Error("No state key selected") throw new Error("No state key selected")
} }
searchComponents(key.detail) searchComponents(key.detail)
@ -246,6 +246,15 @@
</script> </script>
<div class="state-panel"> <div class="state-panel">
<div class="link">
<Link
href="https://docs.budibase.com/docs/app-state"
target="_blank"
secondary
>
Learn how to use State within Budibase.
</Link>
</div>
<div class="section"> <div class="section">
<Select <Select
label="State variables" label="State variables"
@ -297,16 +306,6 @@
</div> </div>
</div> </div>
{/if} {/if}
<div class="link-opacity">
<Link
href="https://docs.budibase.com/docs/app-state"
target="_blank"
size={"S"}
secondary
>
Learn more about State within Budibase.
</Link>
</div>
</div> </div>
<style> <style>
@ -319,18 +318,18 @@
.section { .section {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: var(--spacing-s); gap: var(--spacing-xs);
} }
.text { .text {
color: var(--spectrum-global-color-gray-700); color: var(--spectrum-global-color-gray-600);
font-size: var(--spectrum-global-dimension-font-size-50); font-size: var(--spectrum-global-dimension-font-size-50);
} }
.updates-colour { .updates-colour {
color: #8488fd; color: var(--spectrum-global-color-blue-700);
} }
.controlled-by-colour { .controlled-by-colour {
color: #e87400; color: var(--spectrum-global-color-orange-700);
} }
.component-link { .component-link {
display: inline-block; display: inline-block;
@ -353,7 +352,12 @@
gap: var(--spacing-xs); gap: var(--spacing-xs);
} }
.link-opacity { .link {
opacity: 0.5; color: var(--spectrum-global-color-gray-600);
margin-top: var(--spacing-m);
}
.link:hover {
color: var(--spectrum-global-color-gray-700);
} }
</style> </style>