]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Fix image lazy loading issues 1354/head
authorArthurHoaro <arthur@hoa.ro>
Thu, 15 Aug 2019 09:41:50 +0000 (11:41 +0200)
committerArthurHoaro <arthur@hoa.ro>
Thu, 15 Aug 2019 09:41:50 +0000 (11:41 +0200)
For some reason, bLazy won't load the image if the img block has
either 0 height or width.

assets/default/scss/shaarli.scss

index 61e382b69dc6837111df8a04de9d4bd0ca5eafcc..cd5dd9e6d012af1258609279d77347501c569ef4 100644 (file)
@@ -1436,6 +1436,8 @@ form {
   -webkit-transition: opacity 500ms ease-in-out;
   -moz-transition: opacity 500ms ease-in-out;
   -o-transition: opacity 500ms ease-in-out;
+  min-width: 1px;
+  min-height: 1px;
 
   &.b-loaded {
     opacity: 1;