Skip to content

Commit 0fd3d8e

Browse files
ashleywolfCopilot
andcommitted
Fix ships page responsive edge cases
- Add box-sizing, overflow-wrap, word-break for long titles - Add min-width: 0 on cards to prevent grid blowout Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent fef887f commit 0fd3d8e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

components/ships/ships.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
padding-bottom: spacing(4);
44
max-width: 1440px;
55
margin: 0 auto;
6+
box-sizing: border-box;
67

78
@media (min-width: $lg) {
89
padding-left: spacing(4);
@@ -18,6 +19,7 @@
1819
@extend %header-2;
1920
color: $white;
2021
margin-bottom: spacing(2);
22+
overflow-wrap: break-word;
2123
}
2224

2325
&__subtitle {
@@ -50,6 +52,7 @@
5052
background: $white-20;
5153
border-radius: 12px;
5254
transition: background $simple-fade;
55+
min-width: 0;
5356

5457
@extend %background-filter;
5558

@@ -77,6 +80,8 @@
7780
display: flex;
7881
align-items: baseline;
7982
gap: spacing(1);
83+
overflow-wrap: break-word;
84+
word-break: break-word;
8085
}
8186

8287
&__external-icon {

0 commit comments

Comments
 (0)