Closed gdureuil closed 2 years ago
This line https://github.com/LycheeOrg/Lychee-front/blob/master/scripts/main/lychee.js#L331
lychee.layout = Number.parseInt(data.config.layout, 10) || 1;
Should be changed for the following:
lychee.layout = Number.parseInt(data.config.layout, 10);
As is, 0
is the square layout, which if seen as a number and or-ed with 1
will always return 1
.
A PR with a fix for the frontend has been approved and has been merged into the master branch of the frontend. The next time when a bigger PR to Lychee includes a sync with the frontend, the bug will be fixed.
Detailed description of the problem [REQUIRED]
I have selected "square" thumbnails in albums, but they show as "proportional justified". The setting also reverts itself automaticaly to "proportional justified" when I logout and login again.
Screenshots
Setting for square thumbnails
Not the usual square thumbnails
Output of the diagnostics [REQUIRED]
Browser and system
Windows 11 Firefox 100.0.2 Edge 101.0.1210.53