Skip to content

Commit bc0ab23

Browse files
committed
chore: fix wrapping on mobile for docs site
1 parent 37966a6 commit bc0ab23

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/components/Hero.module.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
.heroMain {
1515
display: flex;
1616
flex-direction: column;
17-
text-wrap: balance;
18-
max-width: 55%;
17+
text-wrap: pretty;
18+
max-width: 30em;
1919
}
2020

2121
.heroName {
@@ -40,13 +40,14 @@
4040
.feature {
4141
display: flex;
4242
flex: 1;
43+
max-width: 100%;
4344
position: relative;
4445
color: var(--rp-c-text-1);
4546
border: 1px dashed var(--rp-c-divider);
4647
border-radius: var(--rp-radius-small);
4748
flex-direction: column;
4849
align-items: flex-start;
49-
gap: 16px;
50+
gap: 24px;
5051
padding: 32px;
5152
}
5253

@@ -62,14 +63,15 @@
6263
color: var(--rp-c-text-2);
6364
font-size: 16px;
6465
line-height: 1.5;
66+
text-wrap: balance;
6567
}
6668

6769
.codeBlock {
6870
position: relative;
6971
width: 100%;
7072
background-color: var(--rp-code-block-bg);
7173
color: var(--rp-code-block-color);
72-
margin: 16px 0;
74+
margin: 8px 0;
7375
}
7476

7577
.codeBlock pre {

0 commit comments

Comments
 (0)