mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
Use even larger thumb if normal size is medium already (#92)
This commit is contained in:
parent
bc5f1af22e
commit
396ecafa6c
1 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,9 @@ function showThumb(img) {
|
|||
|
||||
if (store.get('serve_hidpi') && !thumbUri.endsWith('.gif')) {
|
||||
// Check whether the HiDPI option is enabled, and make an exception for GIFs due to their size
|
||||
imgEl.srcset = `${thumbUri} 1x, ${uris.medium} 2x`;
|
||||
const x2Size = size === 'medium' ? uris.large : uris.medium;
|
||||
// use even larger thumb if normal size is medium already
|
||||
imgEl.srcset = `${thumbUri} 1x, ${x2Size} 2x`;
|
||||
}
|
||||
|
||||
imgEl.src = thumbUri;
|
||||
|
|
Loading…
Reference in a new issue