Skip to content

Commit

Permalink
fix: removed media max height which "force" some media out of bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
mbret committed Dec 1, 2024
1 parent ad35d15 commit 46782ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ export const buildStyleWithMultiColumn = ({
}
img, video, audio, object, svg {
max-width: 100%;
max-width: ${columnWidth}px !important;
max-height: ${columnHeight}px !important;
-max-width: ${columnWidth}px !important;
-max-height: ${columnHeight}px !important;
-pointer-events: none;
-webkit-column-break-inside: avoid;
page-break-inside: avoid;
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/enhancers/layoutEnhancer/layoutEnhancer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ export const layoutEnhancer =
height: ${columnHeight}px !important;
}
img, video, audio, object, svg {
max-width: ${columnWidth}px !important;
max-height: ${columnHeight}px !important;
-max-width: ${columnWidth}px !important;
-max-height: ${columnHeight}px !important;
}
table {
max-width: ${columnWidth}px !important;
Expand Down

0 comments on commit 46782ec

Please sign in to comment.