Skip to content

Commit a5f4fd8

Browse files
committed
Use one column of teasers on phone for overlay text position
Gets too busy otherwise. REDMINE-20852
1 parent ea650e3 commit a5f4fd8

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

entry_types/scrolled/package/src/contentElements/externalLinkList/frontend/ExternalLinkList.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@
1515
.textPosition-below {
1616
min-height: 240px;
1717
}
18+
19+
.textPosition-overlay {
20+
--link-width-s-phone-columns: 1;
21+
}

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

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,24 @@
2424
width: calc((100% - var(--gap) * (var(--columns) - 1)) / var(--columns));
2525
}
2626

27+
.linkWidth-s > * {
28+
max-width: 240px;
29+
}
30+
2731
@container (min-width: 315px) {
28-
.linkWidth-xs,
29-
.linkWidth-s {
32+
.linkWidth-xs {
3033
--columns: 2
3134
}
35+
36+
.linkWidth-s {
37+
--columns: var(--link-width-s-phone-columns, 2)
38+
}
39+
}
40+
41+
@container (min-width: 400px) {
42+
.linkWidth-s {
43+
--columns: 2;
44+
}
3245
}
3346

3447
@container (min-width: 500px) {

0 commit comments

Comments
 (0)