Skip to content

Commit

Permalink
Refactor tooltip styles: use data-tooltip-class-name and fix format…
Browse files Browse the repository at this point in the history
…ting
  • Loading branch information
NikolaiKryshnev committed Dec 13, 2024
1 parent 5aba67e commit 4191221
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/features/messages/cards/ContentDetailsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export function ContentDetailsCard({
<Tooltip
id="message-info"
content="Immutable information about the message itself such as its contents."
data-tooltip-class-name="max-w-[calc(100%-10px)] sm:max-w-[526px]"
/>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/features/messages/cards/GasDetailsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export function GasDetailsCard({ message, blur, igpPayments = {} }: Props) {
<Tooltip
content="Amounts paid to the Interchain Gas Paymaster for message delivery."
id="gas-info"
data-tooltip-class-name="max-w-[calc(100%-10px)] sm:max-w-[526px]"
/>
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion src/features/messages/cards/TransactionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ function TransactionCard({
</div>
<div className="flex items-center pb-1">
<h3 className="mr-2 text-md font-medium text-blue-500">{title}</h3>
<Tooltip id="transaction-info" content={helpText} />
<Tooltip
id="transaction-info"
content={helpText}
data-tooltip-class-name="max-w-[calc(100%-10px)] sm:max-w-[526px]"
/>
</div>
</div>
{children}
Expand Down
1 change: 0 additions & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { AppLayout } from '../AppLayout';
import { ErrorBoundary } from '../components/errors/ErrorBoundary';
import { config } from '../consts/config';
import { ChainConfigSyncer } from '../features/chains/ChainConfigSyncer';
import '../styles/custom.css';
import { MAIN_FONT } from '../styles/fonts';
import '../styles/global.css';

Expand Down
4 changes: 0 additions & 4 deletions src/styles/custom.css

This file was deleted.

0 comments on commit 4191221

Please sign in to comment.