Skip to content

TagSpaces is an offline, open source, document manager with tagging support

optimizing the image viewer

uggrock00156fb549ea
diff --git a/data/ext/viewerImage/extension.css b/data/ext/viewerImage/extension.css
index 85c3d8f3b..3b173d672 100644
--- a/data/ext/viewerImage/extension.css
+++ b/data/ext/viewerImage/extension.css
@@ -18,14 +18,17 @@ body, html {
.imgViewer {
display: block;
- margin: auto auto;
+ width: 100%;
+ height: 100%;
+ margin: auto;
}
#imageContent {
max-width: 100%;
max-height: 100%;
- display: none;
- margin: auto auto;
+ display: block;
+ margin: auto;
+ object-fit: contain;
}
.iconBackground {
@@ -37,7 +40,6 @@ body, html {
}
.transparentImageBackground {
- display: block !important;
background: repeating-linear-gradient(45deg, #d5d5d5, #d5d5d5 10px, #a7a7a7 10px, #a7a7a7 20px);
}
diff --git a/data/ext/viewerImage/index.html b/data/ext/viewerImage/index.html
index 8a85e8a03..66d47cc0a 100644
--- a/data/ext/viewerImage/index.html
+++ b/data/ext/viewerImage/index.html
@@ -58,6 +58,7 @@
<h4 class="modal-title" data-i18n="ns.viewerImage:aboutTitle"></h4>
</div>
<div class="modal-body">
+ <b>ViewerImage</b> is a TagSpaces extension used for opening of the following image formats: JPG, PNG, GIF, SVG, BMP, WEBP, ICO. It supports zooming and rotating of the opened image. For JPG files it features an integrated EXIF parser used for the auto rotation of the pictures.
<h4>License</h4>
Copyright (c) 2012-2015 The TagSpaces Authors. All rights reserved.
Use of this source code is governed by a AGPL3 license that can be found in the <a href="https://raw.githubusercontent.com/tagspaces/tagspaces/master/LICENSE" target="_blank">LICENSE file</a>.