Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix glow on voting power input #5617

Merged
merged 2 commits into from Jan 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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"
Tuditi marked this conversation as resolved.
Show resolved Hide resolved
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