Skip to content

Commit 7120f05

Browse files
Fix advert overlap in Puzzles hub’s most-pop section (#16726)
1 parent 43d581a commit 7120f05

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

dotcom-rendering/src/components/PuzzlesSupporting.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,16 @@ const newsletterStyles = css`
103103
`;
104104

105105
const popularContentStyles = css`
106-
position: relative;
107106
display: block;
108107
width: 100%;
109108
min-width: 0;
110109
box-sizing: border-box;
111110
border-top: 1px solid ${borderColour};
112111
113112
${from.desktop} {
114-
&:has(.ad-slot__content) {
115-
padding-right: 320px;
113+
&:has([data-puzzles-ad='mostpop']) {
114+
display: grid;
115+
grid-template-columns: minmax(0, 1fr) 320px;
116116
}
117117
}
118118
`;
@@ -203,17 +203,9 @@ const mostPopAdStyles = css`
203203
204204
${from.desktop} {
205205
display: block;
206-
position: absolute;
207-
top: 0;
208-
right: 0;
209206
width: 320px;
210207
box-sizing: border-box;
211208
padding: ${space[6]}px ${space[3]}px;
212-
pointer-events: none;
213-
214-
&:has(.ad-slot__content) {
215-
pointer-events: auto;
216-
}
217209
}
218210
`;
219211

0 commit comments

Comments
 (0)