Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 41a4ea7

Browse files
fix: don't use overflow:scroll (#60)
* since we don't hate Windows users, let's not make the exercise ugly for them
1 parent 4dbce4e commit 41a4ea7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

‎src/exercise/01.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,11 @@ function App() {
182182
return (
183183
<div
184184
style={{
185-
height: 350,
185+
minHeight: 350,
186186
width: 300,
187187
backgroundColor: '#ddd',
188188
borderRadius: 4,
189189
padding: 10,
190-
overflow: 'scroll',
191190
}}
192191
>
193192
<UserProvider>

‎src/final/01.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,11 @@ function App() {
189189
return (
190190
<div
191191
style={{
192-
height: 350,
192+
minHeight: 350,
193193
width: 300,
194194
backgroundColor: '#ddd',
195195
borderRadius: 4,
196196
padding: 10,
197-
overflow: 'scroll',
198197
}}
199198
>
200199
<UserProvider>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /