diff --git a/packages/web/src/buttons/LargeButton.svelte b/packages/web/src/buttons/LargeButton.svelte index d92f35ab..69459fd8 100644 --- a/packages/web/src/buttons/LargeButton.svelte +++ b/packages/web/src/buttons/LargeButton.svelte @@ -4,6 +4,7 @@ export let icon; export let disabled = false; + export let fillHorizontal = false; const dispatch = createEventDispatcher(); @@ -12,7 +13,7 @@ } -
+
@@ -31,6 +32,11 @@ background-color: var(--theme-bg-1); } + .button.fillHorizontal { + width: auto; + margin: 0px 10px; + } + .button:not(.disabled):hover { background-color: var(--theme-bg-2); } diff --git a/packages/web/src/buttons/ToolStripSplitDropDownButton.svelte b/packages/web/src/buttons/ToolStripSplitDropDownButton.svelte index 1506fd4c..ffec4646 100644 --- a/packages/web/src/buttons/ToolStripSplitDropDownButton.svelte +++ b/packages/web/src/buttons/ToolStripSplitDropDownButton.svelte @@ -9,6 +9,7 @@ export let label; export let icon; export let component = ToolStripButton; + export let disabled = false; function handleClick(e) { const rect = e.detail.target.getBoundingClientRect(); @@ -18,6 +19,6 @@ } - + diff --git a/packages/web/src/widgets/ConnectionList.svelte b/packages/web/src/widgets/ConnectionList.svelte index fb4cc3cf..b9d65b8c 100644 --- a/packages/web/src/widgets/ConnectionList.svelte +++ b/packages/web/src/widgets/ConnectionList.svelte @@ -16,6 +16,7 @@ import FontIcon from '../icons/FontIcon.svelte'; import CloseSearchButton from '../buttons/CloseSearchButton.svelte'; import { apiCall } from '../utility/api'; + import LargeButton from '../buttons/LargeButton.svelte'; const connections = useConnectionList(); const serverStatus = useServerStatus(); @@ -59,8 +60,11 @@ passProps={{ connectionColorFactory: $connectionColorFactory, showPinnedInsteadOfUnpin: true }} /> {#if $connections && $connections.length == 0 && $commandsCustomized['new.connection']?.enabled} - runCommand('new.connection')}> + runCommand('new.connection')} fillHorizontal + >Add new connection + {/if}