mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/posts: remember fit mode
This commit is contained in:
@ -13,7 +13,12 @@ class PostContentControl {
|
||||
|
||||
this._install();
|
||||
|
||||
this._currentFitFunction = this.fitBoth;
|
||||
this._currentFitFunction = {
|
||||
'fit-both': this.fitBoth,
|
||||
'fit-original': this.fitOriginal,
|
||||
'fit-width': this.fitWidth,
|
||||
'fit-height': this.fitHeight,
|
||||
}[settings.get().fitMode] || this.fitBoth;
|
||||
this._currentFitFunction();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user