Skip to content

Commit a422f0f

Browse files
fix: keep KEP detail card columns balanced
1 parent 01ce7e4 commit a422f0f

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

assets/scss/_kep_page.scss

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
.kep-banner-grid {
1414
display: grid;
15-
grid-template-columns: 1fr 1fr;
15+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
1616

1717
@media (max-width: 991px) {
1818
grid-template-columns: 1fr;
@@ -22,6 +22,7 @@
2222
.kep-banner-col {
2323
padding: 2rem;
2424
position: relative;
25+
min-width: 0;
2526

2627
&.border-start-refined {
2728
border-left: 1px solid #e0e4e8;
@@ -228,18 +229,15 @@
228229
font-size: 0.85rem;
229230
color: $slate-700;
230231
text-decoration: none;
231-
display: flex;
232-
align-items: flex-start;
233-
gap: 8px;
232+
display: block;
234233
transition: all 0.2s ease;
235234
min-width: 0;
236-
overflow-wrap: break-word;
235+
overflow-wrap: anywhere;
237236

238237
i {
239238
font-size: 0.7rem;
240239
color: $slate-400;
241-
line-height: 1;
242-
flex-shrink: 0;
240+
margin-right: 8px;
243241
}
244242

245243
&:hover {

0 commit comments

Comments
 (0)