Book Reader Issues (#906)
* Refactored the Font Escaping Regex with new unit tests. * Fonts are now properly escaped, somehow a regression was introduced. * Refactored most of the book page loading for the reader into the service. * Fixed a bug where going into fullscreen in non dark mode will cause the background of the reader to go black. Fixed a rendering issue with margin left/right screwing html up. Fixed an issue where line-height: 100% would break book's css, now we remove the styles if they are non-valuable. * Changed how I fixed the black mode in fullscreen * Fixed an issue where anchors wouldn't be colored blue in white mode * Fixed a bug in the code that checks if a filename is a cover where it would choose "backcover" as a cover, despite it not being a valid case. * Validate if ReleaseYear is a valid year and if not, set it to 0 to disable it. * Fixed an issue where some large images could blow out the screen when reading on mobile. Now images will force to be max of width of browser * Put my hack back in for fullscreen putting background color to black * Change forwarded headers from All to explicit names * Fixed an issue where Scheme was not https when it should have been. Now the browser will handle which scheme to request. * Cleaned up the user preferences to stack multiple controls onto one row * Fixed fullscreen scroll issue with progress, but now sticky top is missing. * Corrected the element on which we fullscreen
This commit is contained in:
parent
32bfe46187
commit
2b57449a63
14 changed files with 426 additions and 315 deletions
|
|
@ -203,13 +203,6 @@ export class ReaderService {
|
|||
}
|
||||
});
|
||||
}
|
||||
// else if (el.mozRequestFullScreen) {
|
||||
// el.mozRequestFullScreen();
|
||||
// } else if (el.webkitRequestFullscreen) {
|
||||
// el.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
|
||||
// } else if (el.msRequestFullscreen) {
|
||||
// el.msRequestFullscreen();
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -221,13 +214,6 @@ export class ReaderService {
|
|||
}
|
||||
});
|
||||
}
|
||||
// else if (document.msExitFullscreen) {
|
||||
// document.msExitFullscreen();
|
||||
// } else if (document.mozCancelFullScreen) {
|
||||
// document.mozCancelFullScreen();
|
||||
// } else if (document.webkitExitFullscreen) {
|
||||
// document.webkitExitFullscreen();
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue