Skip to content

Commit

Permalink
fix: make all button titles non-selectable
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaferla committed Jan 11, 2024
1 parent e73820a commit 6732b06
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/ProviderActions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,20 @@

{#if msaInfo?.isProvider}
<div class="w-500 flex justify-between">
<button on:click|preventDefault={showAddControlKey} class='btn-primary mr-4 grow select-none'> Add control key </button>
<button on:click={showStake} class='btn-primary ml-4 grow select-none'> Stake To Provider </button>
<button on:click|preventDefault={showAddControlKey} class='btn-primary mr-4 grow'> Add control key </button>
<button on:click={showStake} class='btn-primary ml-4 grow'> Stake To Provider </button>
</div>
{:else if msaInfo?.msaId > 0}
<button
on:click|preventDefault={showCreateOrRequestProvider}
class:hidden={signingAddress === ''}
class='btn-primary select-none'
class='btn-primary'
>
Become a Provider
</button>
{:else if signingAddress !== ''}
<p class="mt-6 p-2">The selected signing address does not have an MSA. An MSA is required to become a Provider.</p>
<button on:click|preventDefault={showCreateMsa} class:hidden={signingAddress === ''} class='btn-primary select-none'>
<button on:click|preventDefault={showCreateMsa} class:hidden={signingAddress === ''} class='btn-primary'>
Create an MSA
</button>
{/if}
Expand Down
5 changes: 5 additions & 0 deletions src/style/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
.action-btn-r {
@apply grow ml-3;
}

}

body {
Expand All @@ -38,3 +39,7 @@ body {
margin: 2em;
background: linear-gradient(to bottom right, #293B59, #007DA1);
}

button {
@apply select-none;
}

0 comments on commit 6732b06

Please sign in to comment.