Imporve image lazy loading
This commit is contained in:
10
style.css
10
style.css
@@ -77,6 +77,16 @@ div.luxtools-gallery img.luxtools-thumb {
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
object-fit: cover;
|
||||
/* Placeholder while lazy-loaded image is pending.
|
||||
* Uses custom property from inline style if thumb_placeholder is configured,
|
||||
* otherwise falls back to built-in SVG icon. */
|
||||
background-color: @ini_background;
|
||||
background-image: var(--luxtools-placeholder, url(images/placeholder.svg));
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
/* contain works well for both: configured placeholder fills the area,
|
||||
* built-in SVG icon stays small and centered */
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
/* Filename overlay (single line, muted). */
|
||||
|
||||
Reference in New Issue
Block a user