Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_pdfviewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-11-26 16:34:40 +0300
committerBackportbot <backportbot-noreply@rullzer.com>2018-11-27 21:38:05 +0300
commit2d20bdc47850e217e5fee32c9933c77026b9c238 (patch)
tree6eed483763b068743096356ced2a7cdfe5538b0f
parentdb1f275d99a89d59fe5077843e7c174d9df7e382 (diff)
Fix PDF sidebar shown in PDF thumbnails
The PDF viewer remembers whether the PDF sidebar was open or closed for each PDF file the last time it was viewed. Thus, when the PDF file is rendered in a thumbnail the sidebar must be explicitly hidden to ensure that it will never be shown. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-rw-r--r--css/minmode.css7
1 files changed, 7 insertions, 0 deletions
diff --git a/css/minmode.css b/css/minmode.css
index e821161..ca525db 100644
--- a/css/minmode.css
+++ b/css/minmode.css
@@ -16,3 +16,10 @@ body {
border: 1px solid #ddd;
border-image: none;
}
+
+/* Force hide the sidebar in the thumbnail, as whether it is shown or not
+ * depends on whether it was open or not the last time that the main viewer was
+ * used. */
+#sidebarContainer {
+ display: none;
+}