Skip to content

Commit 3ad727b

Browse files
committed
fix(website): 修复移动端标题文字被遮挡的问题
1 parent 2c8efea commit 3ad727b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

office-website/src/pages/Home/Home.module.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,11 @@
560560

561561
.title {
562562
font-size: clamp(2rem, 8vw, 3rem);
563+
word-break: break-word;
564+
overflow-wrap: break-word;
565+
hyphens: auto;
566+
max-width: 100%;
567+
padding-right: 10px;
563568
}
564569

565570
.subtitle {
@@ -597,6 +602,11 @@
597602
width: 80px;
598603
height: 80px;
599604
}
605+
606+
.title {
607+
font-size: 1.8rem;
608+
line-height: 1.2;
609+
}
600610
}
601611

602612
/* 为什么使用部分 */

0 commit comments

Comments
 (0)