mirror of
https://github.com/outline/outline.git
synced 2026-11-26 15:43:48 +03:00
fix: Full-width tables render at default width in the template editor (#14621)
This commit is contained in:
1 parent
b73fd509e0
commit
2ccf74bbdd
2 files changed
+4
-2
No files matched your search
@@ -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;
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user