Skip to content

Commit 97b93c4

Browse files
committed
fix: make sure no overflow on small screens
Signed-off-by: Rustin170506 <[email protected]>
1 parent 20c73a1 commit 97b93c4

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
@@ -114,7 +114,6 @@ body#idx p.other-platforms-help {
114114
}
115115

116116
.instructions > * {
117-
width: 45rem;
118117
margin-left: auto;
119118
margin-right: auto;
120119
}
@@ -131,7 +130,7 @@ hr {
131130
#platform-instructions-win-arm64 > p,
132131
#platform-instructions-default > p,
133132
#platform-instructions-unknown > p {
134-
width: 40rem;
133+
width: 80%;
135134
}
136135

137136
.rustup-command::before {
@@ -143,7 +142,6 @@ hr {
143142
.rustup-command {
144143
color: black;
145144
padding: 1rem 1rem 1rem 0;
146-
width: 45rem;
147145
height: auto;
148146
text-align: center;
149147
border-radius: 3px 0 0 3px;
@@ -153,6 +151,7 @@ hr {
153151
white-space: nowrap;
154152
height: 26px;
155153
line-height: 26px;
154+
overflow-x: auto;
156155
}
157156

158157
#platform-instructions-unix div.copy-container,
@@ -163,6 +162,8 @@ hr {
163162
#platform-instructions-unknown div.copy-container {
164163
display: flex;
165164
align-items: center;
165+
width: 90%;
166+
justify-content: center;
166167
}
167168

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

0 commit comments

Comments
 (0)