1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-06 06:07:33 +02:00

Sidebar pattern update

`overflow: auto` is usually a better choice than `overflow: scroll` when you want to make component scrollable. The only difference is that with `auto` you do not see the scrollbar when there's nothing to scroll.
This commit is contained in:
everdimension
2019-12-12 13:01:59 +03:00
committed by GitHub
parent 20984743ee
commit a80aa493a5

View File

@@ -28,7 +28,7 @@ const Details: React.FC<{}> = () => {
<div
style={{
flex: 1,
overflow: 'scroll',
overflow: 'auto',
padding: '16px',
}}
>
@@ -53,7 +53,7 @@ const Details: React.FC<{}> = () => {
flex: 1;
/* Make it scrollable */
overflow: scroll;
overflow: auto;
">
...
</main>