Skip to content

Commit 35f6175

Browse files
authored
Merge pull request #85 from bitsnark/feat/tooltip
info tooltip top
2 parents 52d3df2 + e79d9bf commit 35f6175

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/components/history-table/transactions-table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default function TransactionsTable() {
8080

8181
// Render desktop table view
8282
return (
83-
<div className="bg-card p-6 rounded-xl overflow-hidden w-full">
83+
<div className="bg-card p-6 rounded-xl overflow-visible w-full">
8484
<Table
8585
style={{
8686
borderCollapse: 'separate',

src/components/tabs-switcher/fee-card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function FeeCard({ toCurrency, isAnimating, amount, gasFee }: FeeCardProp
2626
You'll receive
2727
<InfoTooltip
2828
message={`You'll receive the ${toCurrency === 'btc' ? 'BTC' : 'xBTC'} you sent, minus the network fee.`}
29-
position="bottom"
29+
position="top"
3030
align="center"
3131
/>
3232
</div>
@@ -39,7 +39,7 @@ export function FeeCard({ toCurrency, isAnimating, amount, gasFee }: FeeCardProp
3939
Network fee
4040
<InfoTooltip
4141
message="The cost of gas to fund your transaction, paid in ETH. This fee may vary, and is estimated at the moment of your transaction."
42-
position="bottom"
42+
position="top"
4343
align="center"
4444
/>
4545
</div>

src/components/tabs-switcher/transfer-form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export function TransferForm({
120120
Ethereum sending address
121121
<InfoTooltip
122122
message="The sending amount is calculated in BTC. Ethereum token X, Y, Z can be used for transfer"
123-
position="bottom"
123+
position="top"
124124
/>
125125
</Label>
126126
<Input
@@ -146,7 +146,7 @@ export function TransferForm({
146146
Bitcoin receiving address
147147
<InfoTooltip
148148
message="Enter the Bitcoin address where you want to receive your BTC."
149-
position="bottom"
149+
position="top"
150150
/>
151151
</Label>
152152
<Input

src/components/ui/tooltip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function Tooltip({
4242
}, []);
4343

4444
return (
45-
<div className="relative inline-block">
45+
<div className="relative inline-block z-100000">
4646
<div
4747
ref={triggerRef}
4848
onMouseEnter={handleMouseEnter}
@@ -57,7 +57,7 @@ export function Tooltip({
5757
onMouseEnter={handleMouseEnter}
5858
onMouseLeave={handleMouseLeave}
5959
className={cn(
60-
'absolute z-50 min-w-[216px] px-[12px] py-[8px] rounded-lg bg-[#484D59]',
60+
'absolute z-100000 min-w-[216px] px-[12px] py-[8px] rounded-lg bg-[#484D59]',
6161
position === 'top' && 'bottom-full mb-3 left-1/2 transform -translate-x-1/2',
6262
position === 'bottom' && 'top-full mt-3 left-1/2 transform -translate-x-1/2',
6363
position === 'left' && 'right-full mr-3 top-1/2 transform -translate-y-1/2',

0 commit comments

Comments
 (0)