fix: Full-width tables render at default width in the template editor (#14621)

This commit is contained in:
Tom Moor authored and GitHub committed 2026-11-17 18:43:01 -05:00
1 parent b73fd509e0
commit 2ccf74bbdd
2 files changed
+4 -2

No files matched your search

+2
View File
@@ -61,6 +61,8 @@ const Scene: React.FC<Props> = ({
const FillWidth = styled.div`
width: 100%;
container-type: inline-size;
--container-width: 100cqi;
`;
export default Scene;
+2 -2
View File
@@ -1203,7 +1203,7 @@ th .image .${EditorStyleHelper.imageWrapper} img {
max-width: 100vw;
clear: both;
position: initial;
transform: translateX(calc(50% + var(--container-width) * -0.5 + var(--full-width-transform-offset)));
transform: translateX(calc(50% + var(--container-width) * -0.5 + var(--full-width-transform-offset, 0px)));
img {
max-width: 100vw;
@@ -1216,7 +1216,7 @@ th .image .${EditorStyleHelper.imageWrapper} img {
.${EditorStyleHelper.tableFullWidth} {
transform: translateX(calc(50% + ${
EditorStyleHelper.padding
}px + var(--container-width) * -0.5 + var(--full-width-transform-offset)));
}px + var(--container-width) * -0.5 + var(--full-width-transform-offset, 0px)));
.${EditorStyleHelper.tableScrollable},
table {