From 4bf9a457844e360187dc2b37bf164a3b3a58e73a Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sun, 30 Aug 2020 20:40:28 +0000
Subject: [PATCH] Fix right panel on Safari browser (overflow: auto + position: fixed)

---
 map.css |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/map.css b/map.css
index aa9b4de..25ac399 100644
--- a/map.css
+++ b/map.css
@@ -33,17 +33,17 @@
 .panel {
 	opacity: .85;
 	color: black;
+	padding: 0;
 	background: white;
-	padding: 5px;
 	border-left: 1px solid black;
 	font-size: 14px;
-	overflow-y: auto;
 	
 	transition: right .4s, width .4s;
 	
+	height: 100%;
+	width: 360px;
 	position: fixed;
-	width: 350px;
-	right: -365px;
+	right: -361px;
 	top: 0;
 	bottom: 0;
 }
@@ -52,10 +52,6 @@
 }
 .panel .hide {
 	display: none;
-	padding: 0px 1em;
-}
-.panel.enabled .hide {
-	display: block;
 	
 	position: fixed;
 	bottom: 20%;
@@ -72,10 +68,18 @@
 	
 	transition: right .4s, margin-right .4s;
 }
+.panel.enabled .hide {
+	display: block;
+}
 .panel.expanded .hide {
 	right: 360px;
 }
-
+.panel .panel-container {
+	overflow-y: auto;
+	box-sizing: border-box;
+	padding: 5px;
+	height: 100%;
+}
 @media (max-width: 600px) {
 	.panel {
 		width: 80%;
@@ -87,7 +91,6 @@
 	
 	.panel.enabled.expanded .hide {
 		right: 80%;
-		margin-right: 10px;
 	}
 }
 .panel .type {

--
Gitblit v1.9.1