Skip to content

Commit 952050b

Browse files
committed
Fixiki
1 parent f0add31 commit 952050b

File tree

3 files changed

+11
-31
lines changed

3 files changed

+11
-31
lines changed

components/modules/stats/TimelineSlider.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ const initHandles = (gb) => {
579579
this._startSelection = d3.brushSelection(gb.node())
580580
})
581581
.on("drag", function (event) {
582+
tooltip.transition().duration(200).style("opacity", 1)
582583
const selection = d3.brushSelection(gb.node())
583584
if (!selection || !this._startSelection) return
584585
@@ -614,6 +615,7 @@ const initHandles = (gb) => {
614615
})
615616
.on("end", function () {
616617
d3.select(this).style("cursor", "grab")
618+
tooltip.transition().duration(200).style("opacity", 0)
617619
accumulatedDelta = 0
618620
})
619621

components/widgets/GasWidget.vue

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,11 @@
22
/** UI */
33
import Tooltip from "@/components/ui/Tooltip.vue"
44
5-
/** Services */
6-
import { truncate } from "@/services/utils"
5+
/** Store */
6+
import { useAppStore } from "@/store/app"
7+
const appStore = useAppStore()
78
8-
/** API */
9-
import { fetchGasPrice } from "@/services/api/gas"
10-
11-
const gasPrice = ref({})
12-
13-
onMounted(async () => {
14-
const data = await fetchGasPrice()
15-
gasPrice.value = data
16-
})
9+
const gasPrice = computed(() => appStore.gas)
1710
</script>
1811

1912
<template>

pages/faucet.vue

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,15 @@ onMounted(() => {
276276
<Flex
277277
@click="handleChangeNetwork"
278278
align="center"
279-
gap="12"
279+
justify="between"
280280
:class="$style.network_selector"
281281
:style="{
282282
background: `linear-gradient(to ${network === 'mocha' ? 'right' : 'left'}, var(--op-3) 50%, transparent 50%)`,
283+
width: '110px'
283284
}"
284285
>
285-
<Text align="center" size="12" :color="network === 'mocha' ? 'primary' : 'tertiary'" weight="600">Mocha</Text>
286-
<Text align="center" size="12" :color="network === 'arabica' ? 'primary' : 'tertiary'">Arabica</Text>
286+
<Text align="center" size="12" weight="600" :color="network === 'mocha' ? 'primary' : 'tertiary'">Mocha</Text>
287+
<Text align="center" size="12" weight="600" :color="network === 'arabica' ? 'primary' : 'tertiary'">Arabica</Text>
287288
</Flex>
288289
</Flex>
289290
<Flex align="center" gap="6" wide>
@@ -571,29 +572,13 @@ onMounted(() => {
571572
}
572573
573574
.network_selector {
574-
padding: 8px 8px;
575+
padding: 8px;
575576
box-shadow: inset 0 0 0 1px var(--op-10);
576577
border-radius: 5px;
577578
cursor: pointer;
578579
transition: all 1s ease-in-out;
579580
}
580581
581-
.network_selector1 {
582-
height: 32px;
583-
584-
cursor: pointer;
585-
border-radius: 6px;
586-
background: var(--op-5);
587-
588-
padding: 0 8px;
589-
590-
transition: all 0.2s ease;
591-
592-
&:hover {
593-
background: var(--op-8);
594-
}
595-
}
596-
597582
.input {
598583
flex: 1;
599584
}

0 commit comments

Comments
 (0)