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

Various fixes #240

Merged
merged 4 commits into from
Nov 27, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/staking/ValidatorDetailsOverlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ export default defineComponent({

.validator-details-overlay {
max-height: calc(100% - 12rem);
padding-top: 1rem;

&.no-button {
max-height: 100%;
Expand Down
1 change: 1 addition & 0 deletions src/components/staking/ValidatorIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ img, .identicon {
width: var(--size);
height: var(--size);
display: block;
object-fit: contain;
}
</style>
3 changes: 2 additions & 1 deletion src/components/staking/ValidatorScoreDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</div>
<div class="score-content">
<p class="description">
{{ $t("Rates the pool's potential to harm the network, based on its size. ") }}
{{ $t("Rates the pool's potential to harm the network, based on its size.") }}
</p>
<p class="status" :class="getStatusClass(dominanceScore)">
{{ dominanceStatus }}
Expand Down Expand Up @@ -260,6 +260,7 @@ export default defineComponent({

opacity: 0;
max-height: 0;
font-weight: 600;
transition:
opacity var(--transition-duration) var(--nimiq-ease),
max-height var(--transition-duration) var(--nimiq-ease);
Expand Down
4 changes: 2 additions & 2 deletions src/lib/ExplorerUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function explorerTxLink(asset: CryptoCurrency, hash: string) {
case CryptoCurrency.NIM:
return config.environment === ENV_MAIN
? `https://nimiq.watch/#${hash}`
: `https://www.nimiqhub.com/tx/${hash}`;
: `https://test.nimiq.watch/#${hash}`;
case CryptoCurrency.BTC:
return `https://blockstream.info${config.environment === ENV_MAIN ? '' : '/testnet'}/tx/${hash}`;
case CryptoCurrency.USDC:
Expand All @@ -24,7 +24,7 @@ export function explorerAddrLink(asset: SwapAsset, address: string) {
case SwapAsset.NIM:
return config.environment === ENV_MAIN
? `https://nimiq.watch/#${address}`
: `https://www.nimiqhub.com/wallet/${address}`;
: `https://test.nimiq.watch/${address}`;
case SwapAsset.BTC:
return `https://blockstream.info${config.environment === ENV_MAIN ? '' : '/testnet'}/address/${address}`;
case SwapAsset.USDC:
Expand Down