Skip to content

Commit a205d7a

Browse files
committed
Fix text overflowing the screen on phones
1 parent 66bcc4b commit a205d7a

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎src/assets/styles/tailwind.css‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,16 @@
157157

158158
/*
159159
Japanese line breaking: the build inserts <wbr> between phrases (integrations/budoux-wbr.ts), and
160-
keep-all makes those the only break points, so lines no longer split a word. break-word still
161-
wraps anything too long for its box. text-wrap: pretty avoids a lone character on the last line.
160+
keep-all makes those the only break points, so lines no longer split a word. `anywhere` still
161+
wraps a phrase that is longer than its box (unlike break-word it also lets flex/grid columns shrink,
162+
so a long katakana phrase cannot push the page wider than a phone screen). text-wrap: pretty avoids
163+
a lone character on the last line.
162164
*/
163165
@layer base {
164166
:where(body) {
165167
word-break: keep-all;
166168
overflow-wrap: break-word;
169+
overflow-wrap: anywhere;
167170
}
168171
:where(p, li, dd) {
169172
text-wrap: pretty;

‎src/components/pages/HomePage.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const T = {
3232
seekSubtitle: '作業用クローラーロボット',
3333
seekAlt: 'コンクリート瓦礫の上の Seek',
3434
seekText:
35-
'過酷な環境下での活躍を目指して開発している作業マニピュレータ付きクローラーロボットです。本体を覆うメインクローラーと4本のサブクローラー、全長1.5m の6自由度アーム、5台の単眼カメラ・熱カメラ・3D LiDAR を備え、災害現場での調査やインフラ点検、危険区域での作業での活躍が期待されます。',
35+
'過酷な環境下での活躍を目指して開発している作業マニピュレータ付き\u200bクローラーロボットです。本体を覆うメインクローラーと4本のサブクローラー、全長1.5m の6自由度アーム、5台の単眼カメラ・熱カメラ・3D LiDAR を備え、災害現場での調査やインフラ点検、危険区域での作業での活躍が期待されます。',
3636
seekMore: 'Seek について詳しく見る',
3737
outputsTitle: '情報発信',
3838
outputsSubtitle: '開発で得たノウハウやソースコードを公開しています。',

‎src/components/pages/RobotsPage.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const T = {
2424
title: 'ロボット',
2525
description:
2626
'NuTech-R が開発している作業用クローラーロボット「Seek」の紹介。6自由度アームと複数のカメラ・センサを備え、災害現場での調査やインフラ点検での活躍を目指しています。',
27-
heroSubtitle: '過酷な環境下での活躍を目指して開発している作業マニピュレータ付きクローラーロボットです。',
27+
heroSubtitle: '過酷な環境下での活躍を目指して開発している作業マニピュレータ付き\u200bクローラーロボットです。',
2828
overviewTitle: '機体の特徴',
2929
imageAlt:
3030
'Seek の各部(6自由度アーム、俯瞰アーム、エンドエフェクタ、Wi-Fi ルーター、3D LiDAR、メインクローラー、サブクローラー)',

0 commit comments

Comments
 (0)