Make Table of Contents scrollable (#1696)

Inspired by https://stackoverflow.com/a/57040610/1283519, this change makes the Table of Contents scrollable (the menu as seen on on the left side in a non-mobile browser).

Fixes https://github.com/esphome/issues/issues/2088.
This commit is contained in:
Sebastian Lövdahl 2021-12-06 13:29:41 +02:00 committed by GitHub
parent 641e7dcafc
commit a2067b5286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,11 @@ div.body {
min-width: initial; min-width: initial;
} }
div.sphinxsidebar {
max-height: 100%;
overflow-y: auto;
}
img.component-image { img.component-image {
border: none; border: none;
vertical-align: middle; vertical-align: middle;