mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-03 06:43:16 +02:00
Remove global overflow-wrap as it causes other issues
This commit is contained in:
parent
c7a92cff4d
commit
46d0475cbb
2 changed files with 2 additions and 1 deletions
|
|
@ -311,6 +311,7 @@ def process_field(field, fm):
|
|||
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…
Reference in a new issue