Skip to content

Commit

Permalink
fix: fix glow on voting power input (#5617)
Browse files Browse the repository at this point in the history
Co-authored-by: Tuditi <45079109+Tuditi@users.noreply.github.com>
  • Loading branch information
MarkNerdi996 and Tuditi committed Jan 20, 2023
1 parent bb9d92c commit acf5f7a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/shared/components/inputs/AssetAmountInput.svelte
Expand Up @@ -62,6 +62,7 @@
const amountAsFloat = parseCurrency(amount)
const isAmountZeroOrNull = !Number(amountAsFloat)
// Zero value transactions can still contain metadata/tags
error = ''
if (allowZeroOrNull && isAmountZeroOrNull) {
rawAmount = Big(0).toString()
return
Expand Down Expand Up @@ -115,7 +116,7 @@
</div>
{#if containsSlider}
<div class="flex flex-col mt-5">
<SliderInput bind:value={amount} {max} decimals={asset.metadata.decimals} {disabled} />
<SliderInput bind:value={amount} {max} decimals={allowedDecimals} {disabled} />
<div class="flex flex-row justify-between">
<Text color="gray-800" darkColor="gray-500" fontSize="xs"
>{formatTokenAmountBestMatch(0, asset?.metadata)}</Text
Expand Down
4 changes: 3 additions & 1 deletion packages/shared/components/inputs/Dropdown2.svelte
Expand Up @@ -178,6 +178,7 @@
<div class="flex flex-col items-center inner overflow-y-auto" bind:this={navContainer}>
{#each items as item}
<button
type="button"
class="relative flex items-center p-2 pl-1 w-full whitespace-nowrap
{item[valueKey] === value && 'bg-gray-100 dark:bg-gray-700 dark:bg-opacity-20'}
hover:bg-gray-100 dark:hover:bg-gray-700 dark:hover:bg-opacity-20
Expand All @@ -187,8 +188,9 @@
on:focus={() => focusItem(item[valueKey])}
tabindex={dropdown ? 0 : -1}
class:active={item[valueKey] === value}
><Text type={itemTextType} smaller>{item[valueKey]}</Text></button
>
<Text type={itemTextType} smaller>{item[valueKey]}</Text>
</button>
{/each}
</div>
</nav>
Expand Down
Expand Up @@ -56,7 +56,6 @@
)
} catch (err) {
handleError(err)
closePopup()
}
}
Expand Down

0 comments on commit acf5f7a

Please sign in to comment.