fixed buttons height issue
This commit is contained in:
parent
525bf966be
commit
6fa18bb8c3
@ -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 (
|
||||
|
||||
@ -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 (
|
||||
|
||||
@ -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 (
|
||||
|
||||
@ -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 (
|
||||
|
||||
@ -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 (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user