Skip to content

Commit

Permalink
Merge pull request #12615 from guardian/ei/use-max-width-not-clip
Browse files Browse the repository at this point in the history
Use max-width to prevent containers expanding
  • Loading branch information
emma-imber authored Oct 22, 2024
2 parents e056f54 + d514430 commit b78123e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dotcom-rendering/src/lib/rootStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ export const rootStyles = (
.ad-slot-container {
/* prevent third-party code from breaking our layout */
/* using hidden as a fallback for browsers that don't support clip */
overflow-x: hidden;
/* clip is our preferred choice as it allows sticky ads in the right column */
overflow-x: clip;
max-width: 100vw;
}
`;

0 comments on commit b78123e

Please sign in to comment.