Skip to content

Commit fe55e08

Browse files
committed
Prevent teaser items from becoming too large on smaller viewports
Prevent l and xl items from exceeding the width they would have if the viewport was wide enough to for the maximum number of columns to be used. REDMINE-20979
1 parent e11e3b3 commit fe55e08

File tree

1 file changed

+13
-0
lines changed
  • entry_types/scrolled/package/src/contentElements/externalLinkList/frontend/textPositons

1 file changed

+13
-0
lines changed

entry_types/scrolled/package/src/contentElements/externalLinkList/frontend/textPositons/below.module.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,19 @@
6060
--reference-max-width: var(--layout-inline-xl-content-max-width);
6161
}
6262

63+
.list:where(:not(.width-full)) > * {
64+
max-width: calc((var(--content-max-width) - var(--gap) * (var(--max-columns) - 1)) / var(--max-columns));
65+
}
66+
67+
.width-lg.layout-center.linkWidth-l,
68+
.width-xl.linkWidth-xl {
69+
--max-columns: 2;
70+
}
71+
72+
.width-xl.linkWidth-l {
73+
--max-columns: 3;
74+
}
75+
6376
.linkWidth-s > * {
6477
max-width: 240px;
6578
}

0 commit comments

Comments
 (0)