Skip to content

Commit

Permalink
Properly format store badges in Japanese
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Feb 2, 2024
1 parent 76d501d commit add4064
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,13 @@
font-weight: bold;
font-size: 1.4em;
}
.store-badge-text {
display: flex;
flex-direction: column;
}
[lang="ja"] .store-badge-text {
flex-direction: column-reverse;
}

.download-button {
display: inline-flex;
Expand Down Expand Up @@ -741,8 +748,8 @@ <h1 class="header">
<div data-if-os="windows">
<a class="store-badge microsoft-store" href="https://apps.microsoft.com/store/detail/turbowarp/9P4DPZGV5ZKL">
<div class="store-icon microsoft-icon"></div>
<div>
<div l10n="getit" l10n-description="Used in the context 'Get it from Microsoft'. Microsoft is on a separate line.">Get it from</div>
<div class="store-badge-text">
<div l10n="getit" l10n-description="Used in the context 'Get it from Microsoft'. Microsoft is on a separate line (above in Japanese, below in others)">Get it from</div>
<div>Microsoft</div>
</div>
</a>
Expand All @@ -754,8 +761,8 @@ <h1 class="header">
<div data-if-os="mac">
<a class="store-badge mac-app-store" href="https://apps.apple.com/us/app/turbowarp/id6444661463">
<div class="store-icon apple-icon"></div>
<div>
<div l10n="downloadon" l10n-description="Used in the context 'Download on the Mac App Store'. Mac App Store is on a separate line.">Download on the</div>
<div class="store-badge-text">
<div l10n="downloadon" l10n-description="Used in the context 'Download on the Mac App Store'. Mac App Store is on a separate line (above in Japanese, below in others)">Download on the</div>
<div>Mac App Store</div>
</div>
</a>
Expand Down Expand Up @@ -1174,8 +1181,8 @@ <h2 l10n="win">Install on Windows</h2>
<p l10n="ms">Get it from the Microsoft Store to enable automatic updates.</p>
<a class="store-badge microsoft-store" href="https://apps.microsoft.com/store/detail/turbowarp/9P4DPZGV5ZKL">
<div class="store-icon microsoft-icon"></div>
<div>
<div l10n="getit" l10n-description="Used in the context 'Get it from Microsoft'. Microsoft is on a separate line.">Get it from</div>
<div class="store-badge-text">
<div l10n="getit" l10n-description="Used in the context 'Get it from Microsoft'. Microsoft is on a separate line (above in Japanese, below in others)">Get it from</div>
<div>Microsoft</div>
</div>
</a>
Expand All @@ -1193,8 +1200,8 @@ <h2 l10n="mac">Install on macOS</h2>
<p l10n="macupd">Install from the Mac App Store for automatic updates.</p>
<a class="store-badge mac-app-store" href="https://apps.apple.com/us/app/turbowarp/id6444661463">
<div class="store-icon apple-icon"></div>
<div>
<div l10n="downloadon" l10n-description="Used in the context 'Download on the Mac App Store'. Mac App Store is on a separate line.">Download on the</div>
<div class="store-badge-text">
<div l10n="downloadon" l10n-description="Used in the context 'Download on the Mac App Store'. Mac App Store is on a separate line (above in Japanese, below in others)">Download on the</div>
<div>Mac App Store</div>
</div>
</a>
Expand Down

0 comments on commit add4064

Please sign in to comment.