fix: asset dialog overflow (2488) (#2497)

This commit is contained in:
Art 2023-01-03 19:37:23 +01:00 committed by GitHub
parent 6f95989569
commit cc3c339cc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@ export const AssetDetailsTable = ({
}: AssetDetailsTableProps) => { }: AssetDetailsTableProps) => {
const longStringModifiers = (key: AssetDetail, value: string) => const longStringModifiers = (key: AssetDetail, value: string) =>
(value && key === AssetDetail.CONTRACT_ADDRESS) || key === AssetDetail.ID (value && key === AssetDetail.CONTRACT_ADDRESS) || key === AssetDetail.ID
? { className: 'truncate', title: value } ? { className: 'break-all', title: value }
: {}; : {};
const details = rows.map((r) => ({ const details = rows.map((r) => ({

View File

@ -34,7 +34,7 @@ export function Dialog({
); );
const wrapperClasses = classNames( const wrapperClasses = classNames(
// Positions the modal in the center of screen // Positions the modal in the center of screen
'z-20 relative rounded top-[10vh] max-w-[90vw]', 'z-20 relative rounded top-[10vh]',
// Dimensions // Dimensions
'max-w-[90vw] p-4 md:p-8', 'max-w-[90vw] p-4 md:p-8',
// Need to apply background and text colors again as content is rendered in a portal // Need to apply background and text colors again as content is rendered in a portal