This commit is contained in:
Timothy Jaeryang Baek
2026-07-15 04:18:56 -04:00
parent f8350360df
commit 2018546a7b
5 changed files with 29 additions and 79 deletions
@@ -48,7 +48,17 @@
};
</script>
{#if visibleActions.length}
{#if visibleActions.length === 1}
<button
class="ml-1 rounded-lg bg-gray-50 px-2.5 py-1 text-xs text-gray-900 transition ring-1 ring-gray-200 hover:bg-gray-100 dark:bg-gray-850 dark:text-gray-100 dark:ring-gray-800 dark:hover:bg-gray-800"
type="button"
on:click={() => {
runAction(primaryAction);
}}
>
{$i18n.t(label)}
</button>
{:else if visibleActions.length > 1}
<div
class="ml-1 flex overflow-hidden rounded-lg bg-gray-50 text-xs text-gray-900 transition ring-1 ring-gray-200 dark:bg-gray-850 dark:text-gray-100 dark:ring-gray-800"
>
+1 -1
View File
@@ -28,7 +28,7 @@
</div>
<button
class="p-1 px-3 text-xs flex rounded-sm transition"
class="px-2 py-1 text-xs flex rounded-lg transition hover:bg-gray-50/70 dark:hover:bg-gray-850/50"
type="button"
on:click={() => {
const propertySpec = valvesSpec.properties[property] ?? {};