Skip to content

Commit 838dff7

Browse files
committed
fix: make sure no overflow on small screens
Signed-off-by: Rustin170506 <[email protected]>
1 parent f286ac2 commit 838dff7

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

www/index.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ <h2>An installer for the systems programming language <a href="https://www.rust-
129129
</div>
130130

131131
<!-- duplicate the default cross-platform instructions -->
132-
<div>
133132
<p>If you are running Unix,<br/>run the following in your terminal, then follow the onscreen instructions.</p>
134133
<div class="copy-container">
135134
<pre class="rustup-command">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
@@ -142,7 +141,6 @@ <h2>An installer for the systems programming language <a href="https://www.rust-
142141
<div id="copy-status-message-unknown" class="copy-button-text">Copied!</div>
143142
</button>
144143
</div>
145-
</div>
146144

147145
<hr/>
148146

@@ -177,7 +175,6 @@ <h2>An installer for the systems programming language <a href="https://www.rust-
177175
</div>
178176

179177
<div id="platform-instructions-default" class="instructions">
180-
<div>
181178
<p>To install Rust, if you are running Unix,<br/>run the following
182179
in your terminal, then follow the onscreen instructions.</p>
183180
<div class="copy-container">
@@ -191,7 +188,6 @@ <h2>An installer for the systems programming language <a href="https://www.rust-
191188
<div id="copy-status-message-default" class="copy-button-text">Copied!</div>
192189
</button>
193190
</div>
194-
</div>
195191

196192
<hr/>
197193

www/rustup.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ body#idx p.other-platforms-help {
115115
}
116116

117117
.instructions > * {
118-
width: 45rem;
119118
margin-left: auto;
120119
margin-right: auto;
121120
}
@@ -132,7 +131,7 @@ hr {
132131
#platform-instructions-win-arm64 > p,
133132
#platform-instructions-default > p,
134133
#platform-instructions-unknown > p {
135-
width: 40rem;
134+
width: 80%;
136135
}
137136

138137
.rustup-command::before {
@@ -144,7 +143,6 @@ hr {
144143
.rustup-command {
145144
color: black;
146145
padding: 1rem 1rem 1rem 0;
147-
width: 45rem;
148146
height: auto;
149147
text-align: center;
150148
border-radius: 3px 0 0 3px;
@@ -154,6 +152,7 @@ hr {
154152
white-space: nowrap;
155153
height: 26px;
156154
line-height: 26px;
155+
overflow-x: auto;
157156
}
158157

159158
#platform-instructions-unix div.copy-container,
@@ -164,6 +163,8 @@ hr {
164163
#platform-instructions-unknown div.copy-container {
165164
display: flex;
166165
align-items: center;
166+
width: 90%;
167+
justify-content: center;
167168
}
168169

169170
#platform-instructions-unix button.copy-button,

0 commit comments

Comments
 (0)