From 05e6ed7e0e812884cbcb149f0e03cdd9db30944d Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Mon, 28 Nov 2016 12:46:19 +0530 Subject: [PATCH] Prevent a cramped-up revision history sidebar --- css/style.css | 12 +++++++++--- js/documents.js | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/css/style.css b/css/style.css index ee4671c3..16612e06 100644 --- a/css/style.css +++ b/css/style.css @@ -182,16 +182,22 @@ #revViewerContainer{ position: absolute; - width: 85%; + width: 100%; z-index: 600; background-color: #ddd !important; top: 45px; bottom: 0; } +#revViewer{ + position: relative; + margin-right: 250px; + height: 100%; +} + #revPanelContainer{ - position: absolute; - width: 15%; + position: fixed; + width: 250px; z-index: 600; background-color: #efefef !important; right: 0; diff --git a/js/documents.js b/js/documents.js index 995b18e0..71d3f0a8 100644 --- a/js/documents.js +++ b/js/documents.js @@ -343,7 +343,7 @@ var documentsMain = { moreVersionsLabel: t('richdocuments', 'More versions...'), closeButtonUrl: OC.imagePath('core', 'actions/close') }); - $(document.body).prepend(revHistoryContainer); + $('#revViewerContainer').prepend(revHistoryContainer); documentsMain.UI.revisionsStart = 0;