Skip to content

Commit 1fd2d5e

Browse files
authored
トップのリードが Safari で崩れているのを修正 (#1576)
1 parent 16beee6 commit 1fd2d5e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.vitepress/theme/components/landing/1. hero-section/HeroSection.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import HeroDiagram from './HeroDiagram.vue'
1515
<h1>The Build Tool<br />for the Web</h1>
1616
<!-- Tagline -->
1717
<h3>
18-
Vite は、次世代の<wbr /> Web アプリケーションを支える<wbr />超高速フロントエンド<wbr />ビルドツールです
18+
Vite は、次世代の Web アプリケーションを支える<br />超高速フロントエンドビルドツールです
1919

2020
</h3>
2121

@@ -131,7 +131,10 @@ import HeroDiagram from './HeroDiagram.vue'
131131
}
132132
}
133133
134-
h3 {
135-
white-space: nowrap; /* 日本語版: 改行位置の調整のため */
134+
/* 日本語版: 改行位置の調整のため */
135+
@media (max-width: 480px) {
136+
h3 > br {
137+
display: none;
138+
}
136139
}
137140
</style>

.vitepress/theme/styles/landing.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ html:has(.landing) {
133133
line-height: 150%;
134134
letter-spacing: -0.4px;
135135
max-width: 500px;
136-
/* text-wrap: balance; 日本語版: 改行位置の調整のため無効化 */
136+
text-wrap: balance;
137137
cursor: default;
138138
margin-bottom: 25px;
139139
padding: 0 20px;

0 commit comments

Comments
 (0)