diff --git a/docs/asset/style.css b/docs/asset/style.css index 82eefd5..36bfef8 100644 --- a/docs/asset/style.css +++ b/docs/asset/style.css @@ -230,7 +230,9 @@ body { } /*IMAGE*/ -.griditem-image .griditem-containerupper { +.griditem-containerupper-image { + padding: var(--size-grid-gutter) var(--size-grid-gutter) 0 var(--size-grid-gutter); + display: inline-block; position: absolute; height: 100%; width: 100%; @@ -238,14 +240,17 @@ body { z-index: 200; top: 0; } -.griditem-image .griditem-containerlower { - padding-bottom: var(--size-grid-gutter); +.griditem-containerlower-image { + padding: var(--size-grid-gutter); position: absolute; width: 100%; bottom: 0; z-index: 200; left: 0; } +.griditem-containerlower-image:empty { + display: none; +} .griditem-image { background: transparent; padding-bottom: 0; @@ -371,6 +376,7 @@ body { vertical-align: top; text-align: center; float: right; + text-decoration: none; } .griditem-typeicon { opacity: var(--alpha-idleicon); @@ -451,10 +457,10 @@ body { } /* IMAGE */ -.griditem-image .griditem-containerlower { +.griditem-containerlower-image { display: none; } -.griditem-image:hover .griditem-containerlower { +.griditem-image:hover .griditem-containerlower-image { display: initial; } .griditem-taglink { diff --git a/docs/logic/view.js b/docs/logic/view.js index 3a07851..5c51138 100644 --- a/docs/logic/view.js +++ b/docs/logic/view.js @@ -88,7 +88,8 @@ function View() } let onclickImage = ``; - if (SETTINGS.SHOWIMAG && this.isType(value.TYPE, 'image')) + let entryIsImageType = (SETTINGS.SHOWIMAG && this.isType(value.TYPE, 'image')); + if (entryIsImageType) { itemClass += " griditem-image"; onclickImage = `onclick="main.view.handleImageClick(event, this, '${value.FILE}');" @@ -118,7 +119,12 @@ function View() // UPPER CONTENT START if (SETTINGS.SHOWUPPER) { - entry += `