Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit ac9c51d

Browse files
committed
Remove non-existing #root from css selectors (#142)
1 parent f51d278 commit ac9c51d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public/js/reader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ const readerComponent = () => {
241241
*/
242242
setupScroller() {
243243
if (this.mode !== 'continuous') return;
244-
$('#root img').each((idx, el) => {
244+
$('img').each((idx, el) => {
245245
$(el).on('inview', (event, inView) => {
246246
if (inView) {
247247
const current = $(event.currentTarget).attr('id');

src/views/reader.html.ecr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111

112112
<style>
113113
img[data-src][src*='data:image'] { background: white; }
114-
#root img { width: 100%; }
114+
img { width: 100%; }
115115
</style>
116116

117117
</html>

0 commit comments

Comments
 (0)