Remove global overflow-wrap as it causes other issues

This commit is contained in:
Kovid Goyal 2017-05-17 18:26:06 +05:30
parent c7a92cff4d
commit 46d0475cbb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 1 deletions

View File

@ -311,6 +311,7 @@ def render_metadata(mi, table, book_id, field_list=None): # {{{
add_extra_css(def():
sel = '.' + CLASS_NAME + ' '
style = build_rule(sel + 'table.metadata td:first-of-type', font_weight='bold', padding_right='1em', white_space='nowrap')
style = build_rule(sel + 'table.metadata td:last-of-type', overflow_wrap='break-word')
style += build_rule(sel + 'table.metadata a[href]', color='blue')
style += build_rule(sel + 'table.metadata a[href]:hover', color=get_color('window-hover-foreground'))
style += build_rule(sel + 'table.metadata a[href]:active', color=get_color('window-hover-foreground'), transform='scale(1.5)')

View File

@ -59,7 +59,7 @@ def init_ui():
install(translations)
get_translations(translations)
remove_initial_progress_bar()
document.head.appendChild(E.style('body { overflow-wrap: break-word; word-wrap: break-word; }\n' + get_widget_css()))
document.head.appendChild(E.style(get_widget_css()))
set_css(document.body, background_color=get_color('window-background'), color=get_color('window-foreground'))
document.body.appendChild(E.div())
document.body.lastChild.appendChild(E.div(id=book_list_container_id, style='display: none'))