diff --git a/src/pyj/book_list/book_details.pyj b/src/pyj/book_list/book_details.pyj index 0c64441ae6..249e618f80 100644 --- a/src/pyj/book_list/book_details.pyj +++ b/src/pyj/book_list/book_details.pyj @@ -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)') diff --git a/src/pyj/book_list/main.pyj b/src/pyj/book_list/main.pyj index 53ea878107..c798d14fa0 100644 --- a/src/pyj/book_list/main.pyj +++ b/src/pyj/book_list/main.pyj @@ -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'))