From 82f52c911fa2cfe8d320d83d95e9e3f80b9b949a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20L=C3=B6vdahl?= Date: Mon, 6 Dec 2021 13:29:41 +0200 Subject: [PATCH] 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. --- _static/custom.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_static/custom.css b/_static/custom.css index d6723c9d8..c9f761428 100644 --- a/_static/custom.css +++ b/_static/custom.css @@ -13,6 +13,11 @@ div.body { min-width: initial; } +div.sphinxsidebar { + max-height: 100%; + overflow-y: auto; +} + img.component-image { border: none; vertical-align: middle;