Skip to content

Commit

Permalink
fix(jsx-email): prevent cellPadding, cellSpacing override
Browse files Browse the repository at this point in the history
  • Loading branch information
shellscape committed Oct 15, 2024
1 parent 2dc1238 commit c067250
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/jsx-email/src/components/container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ export const Container: JsxEmailComponent<ContainerProps> = ({
<table
align={alignment}
width="100%"
{...props}
role="presentation"
cellSpacing="0"
cellPadding="0"
border={0}
{...props}
style={{
...(configDds || disableDefaultStyle ? {} : { maxWidth: `${containerWidth}px` }),
...style
Expand Down
4 changes: 2 additions & 2 deletions packages/jsx-email/src/components/row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ export const Row: JsxEmailComponent<RowProps> = ({
<table
align="center"
width="100%"
{...props}
{...debugProps}
style={style}
role="presentation"
cellSpacing="0"
cellPadding="0"
border={0}
{...props}
{...debugProps}
>
<tbody style={configDds || disableDefaultStyle ? {} : { width: '100%' }}>
<tr style={configDds || disableDefaultStyle ? {} : { width: '100%' }}>{children}</tr>
Expand Down
4 changes: 2 additions & 2 deletions packages/jsx-email/src/components/section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export const Section: JsxEmailComponent<SectionProps> = ({ children, style, ...p
<table
align="center"
width="100%"
{...props}
{...debugProps}
style={style}
border={0}
cellPadding="0"
cellSpacing="0"
role="presentation"
{...props}
{...debugProps}
>
<tbody>
<tr>
Expand Down

0 comments on commit c067250

Please sign in to comment.