mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Remove global overflow-wrap as it causes other issues
This commit is contained in:
parent
c7a92cff4d
commit
46d0475cbb
@ -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)')
|
||||
|
@ -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'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user