Skip to content

Commit 0a28a0c

Browse files
committed
fix GasFeeCalculator: tooltip & input placeholder
1 parent b66ac9c commit 0a28a0c

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

components/modules/gas/GasFeeCalculator.vue

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,30 @@ const gasFee = computed(() => {
3636
<Flex align="center" justify="between">
3737
<Text size="11" weight="600" color="primary">Gas Price</Text>
3838

39-
<Tooltip position="end">
39+
<Tooltip position="center" side="left">
4040
<Icon name="help" size="12" color="tertiary" />
4141

42-
<template #content> todo: hint </template>
42+
<template #content>
43+
<Flex direction="column" gap="8">
44+
<Text align="left" height="140">
45+
In this form you can calculate<br />
46+
<Text color="primary" weight="700">Gas Fee</Text> using the desired
47+
<Text color="primary" weight="700">Gas Limit</Text>
48+
</Text>
49+
50+
<Flex align="center" gap="4">
51+
<Text mono weight="600" color="primary">Gas Fee</Text> <Icon name="equals" size="12" color="secondary" />
52+
<Text mono weight="600" color="primary">Gas Price</Text> <Icon name="close" size="12" color="secondary" />
53+
<Text mono weight="600" color="primary">Gas Limit</Text>
54+
</Flex>
55+
56+
<Text align="left" height="140" color="tertiary"
57+
>To quickly access the calculator, use the <br />command menu "<Text color="secondary"
58+
>Run Fee Calculator</Text
59+
>"</Text
60+
>
61+
</Flex>
62+
</template>
4363
</Tooltip>
4464
</Flex>
4565

@@ -115,7 +135,7 @@ const gasFee = computed(() => {
115135
@input="handleGasLimitInput"
116136
@focus="isInputActive = true"
117137
@blur="isInputActive = false"
118-
placeholder="Input Gas Limit"
138+
placeholder="Specify your tx’s Gas Limit"
119139
:class="$style.input_box"
120140
/>
121141
</Flex>

0 commit comments

Comments
 (0)