cleanup previous PR

This commit is contained in:
Kovid Goyal 2024-05-24 21:01:20 +05:30
parent 2e47350e53
commit 27abe25a57
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -47,7 +47,7 @@ from read_book.toc import get_current_toc_nodes, update_visible_toc_nodes
from read_book.touch import set_left_margin_handler, set_right_margin_handler from read_book.touch import set_left_margin_handler, set_right_margin_handler
from session import get_device_uuid, get_interface_data from session import get_device_uuid, get_interface_data
from utils import ( from utils import (
default_context_menu_should_be_allowed, html_escape, is_ios, parse_url_params, default_context_menu_should_be_allowed, html_escape, parse_url_params,
safe_set_inner_html, username_key safe_set_inner_html, username_key
) )
@ -288,7 +288,7 @@ class View:
} }
iframe, self.iframe_wrapper = create_wrapped_iframe(handlers, _('Bootstrapping book reader...'), entry_point, iframe_kw) iframe, self.iframe_wrapper = create_wrapped_iframe(handlers, _('Bootstrapping book reader...'), entry_point, iframe_kw)
container.appendChild( container.appendChild(
E.div(style='max-height: 100dvh; width: 100vw; height: 100dvh; overflow: hidden; display: flex; align-items: stretch', # container for horizontally aligned panels E.div(style='max-height: 100dvh; width: 100dvw; height: 100dvh; overflow: hidden; display: flex; align-items: stretch', # container for horizontally aligned panels
oncontextmenu=def (ev): oncontextmenu=def (ev):
if not default_context_menu_should_be_allowed(ev): if not default_context_menu_should_be_allowed(ev):
ev.preventDefault() ev.preventDefault()