mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 10:55:30 -04:00
Remove non-existing #root from css selectors (#142)
This commit is contained in:
parent
f51d27860a
commit
ac9c51dd33
@ -241,7 +241,7 @@ const readerComponent = () => {
|
||||
*/
|
||||
setupScroller() {
|
||||
if (this.mode !== 'continuous') return;
|
||||
$('#root img').each((idx, el) => {
|
||||
$('img').each((idx, el) => {
|
||||
$(el).on('inview', (event, inView) => {
|
||||
if (inView) {
|
||||
const current = $(event.currentTarget).attr('id');
|
||||
|
@ -111,7 +111,7 @@
|
||||
|
||||
<style>
|
||||
img[data-src][src*='data:image'] { background: white; }
|
||||
#root img { width: 100%; }
|
||||
img { width: 100%; }
|
||||
</style>
|
||||
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user