Adapt book skin to detailed artwork
This commit is contained in:
@@ -178,8 +178,8 @@ class UIControllerModule extends BaseModule {
|
||||
const viewportWidth = window.innerWidth;
|
||||
const viewportHeight = window.innerHeight;
|
||||
const viewportAspectRatio = viewportWidth / viewportHeight;
|
||||
const bookWidth = 2727;
|
||||
const bookHeight = 1691;
|
||||
const bookWidth = 1421;
|
||||
const bookHeight = 799;
|
||||
const bookScale = Math.min(viewportWidth / bookWidth, viewportHeight / bookHeight);
|
||||
|
||||
document.documentElement.style.setProperty('--book-width', `${bookWidth}px`);
|
||||
|
||||
Reference in New Issue
Block a user