Skip to content

Commit 87cca73

Browse files
committed
fix(rustup): use <pre><code> not just <code>
`<code>` is an inline element, and was forcing overflow on the page on small screens. Wrapping it in a `<pre>` element properly lets it fill its space but then overflow into a scroll region as necessary.
1 parent 9ada294 commit 87cca73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/tools/rustup.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<div class="row">
22
<div id="platform-instructions-unix" class="instructions" style="display: block;">
33
<p>It looks like you’re running macOS, Linux, or another Unix-like OS. To download Rustup and install Rust, run the following in your terminal, then follow the on-screen instructions.</p>
4-
<code>curl https://sh.rustup.rs -sSf | sh</code>
4+
<pre><code>curl https://sh.rustup.rs -sSf | sh</code></pre>
55
</div>
66
<div id="platform-instructions-win" class="instructions" style="display: none;">
77
<p>It looks like you’re running Windows. To install Rust, download and run</p>
88
<a href="https://win.rustup.rs" class="button button-secondary">rustup‑init.exe</a>
99
<p>...then follow the onscreen instructions.</p>
1010
<p><b>Windows Subsystem for Linux</b></p>
1111
<p>If you’re a Windows Subsystem for Linux user run the following in your terminal, then follow the on-screen instructions to install Rust.</p>
12-
<code>curl https://sh.rustup.rs -sSf | sh</code>
12+
<pre><code>curl https://sh.rustup.rs -sSf | sh</code></pre>
1313
</div>
1414
<div id="platform-instructions-unknown" class="instructions" style="display: none;">
1515
<!-- unrecognized platform: ask for help -->

0 commit comments

Comments
 (0)