fixed buttons height issue

This commit is contained in:
Dmitri 2026-04-21 07:53:05 +04:00
parent 525bf966be
commit 6fa18bb8c3
5 changed files with 10 additions and 0 deletions

View File

@ -48,6 +48,8 @@ const DescriptionElement: React.FC<DescriptionElementProps> = ({
width: element.width ? '100%' : 'auto',
height: element.height ? '100%' : 'auto',
objectFit: 'contain',
// Override Tailwind preflight's max-width: 100% which causes shrinking near canvas edges
maxWidth: 'none',
};
return (

View File

@ -31,6 +31,8 @@ const LogoElement: React.FC<LogoElementProps> = ({
width: element.width ? '100%' : 'auto',
height: element.height ? '100%' : 'auto',
objectFit: 'contain',
// Override Tailwind preflight's max-width: 100% which causes shrinking near canvas edges
maxWidth: 'none',
};
return (

View File

@ -40,6 +40,8 @@ const NavigationElement: React.FC<NavigationElementProps> = ({
width: element.width ? '100%' : 'auto',
height: element.height ? '100%' : 'auto',
objectFit: 'contain',
// Override Tailwind preflight's max-width: 100% which causes shrinking near canvas edges
maxWidth: 'none',
};
return (

View File

@ -31,6 +31,8 @@ const SpotElement: React.FC<SpotElementProps> = ({
width: element.width ? '100%' : 'auto',
height: element.height ? '100%' : 'auto',
objectFit: 'contain',
// Override Tailwind preflight's max-width: 100% which causes shrinking near canvas edges
maxWidth: 'none',
};
return (

View File

@ -47,6 +47,8 @@ const TooltipElement: React.FC<TooltipElementProps> = ({
width: element.width ? '100%' : 'auto',
height: element.height ? '100%' : 'auto',
objectFit: 'contain',
// Override Tailwind preflight's max-width: 100% which causes shrinking near canvas edges
maxWidth: 'none',
};
return (