Skip to content

Commit 6bfefc5

Browse files
authored
Merge pull request #4653 from JetBrains/ktl-1648-banner-fix
feat: protect hero banner from overflow
2 parents 8c0fe07 + 2c93dca commit 6bfefc5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

blocks/main/hero/hero.module.css

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
display: none;
114114
position: relative;
115115
justify-content: space-between;
116+
gap: 50px;
116117
margin-top: 40px;
117118
width: 545px;
118119
padding: 16px 16px 16px 24px;
@@ -123,17 +124,17 @@
123124

124125
.bannerContent {
125126
text-align: left;
127+
min-width: 0;
126128
}
127129

128-
.bannerTitle {
130+
.bannerTitle, .bannerCaption {
129131
margin: 0;
132+
max-width: 100%;
133+
overflow: hidden;
134+
text-overflow: ellipsis;
135+
white-space: nowrap;
130136
letter-spacing: 0.01em;
131-
}
132-
133-
.bannerCaption {
134-
margin: 0;
135137
color: white;
136-
letter-spacing: 0.01em;
137138
}
138139

139140
.bannerButton {

0 commit comments

Comments
 (0)