File 2765-Prevent-left-nav-overlapping-content-during-scroll.patch of Package erlang

From eeff274e6f37b03c77544b5c653714861c4052dc Mon Sep 17 00:00:00 2001
From: Max Nordlund <max.nordlund@gmail.com>
Date: Sat, 21 Mar 2020 21:59:20 +0100
Subject: [PATCH] Prevent left nav overlapping content during scroll

When viewed on a smaller screen the content can be scrolled not only up
and down, but also left and right. More specifically it can be scrolled
back over the navigation menu to the left.

This prevents that, and as an bonus it fixes the scrolling to the right
where there is no content.
---
 lib/erl_docgen/priv/css/otp_doc.css | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/erl_docgen/priv/css/otp_doc.css b/lib/erl_docgen/priv/css/otp_doc.css
index 17d9f8dd56..e170eb6c54 100644
--- a/lib/erl_docgen/priv/css/otp_doc.css
+++ b/lib/erl_docgen/priv/css/otp_doc.css
@@ -52,6 +52,7 @@ a:visited      { color: #1b6ec2; text-decoration: none }
 #content {
   margin-left: 340px; /* set left value to WidthOfFrameDiv */
   max-width: 42em;
+  overflow-x: hidden;
 }
 
 .frontpage 
-- 
2.16.4

openSUSE Build Service is sponsored by