diff --git a/src/pyj/read_book/bookmarks.pyj b/src/pyj/read_book/bookmarks.pyj index ae08f0d4d2..33d3b49c15 100644 --- a/src/pyj/read_book/bookmarks.pyj +++ b/src/pyj/read_book/bookmarks.pyj @@ -58,7 +58,7 @@ def new_bookmark(container_id, annotations_manager, data, onclick, ev): def create_bookmarks_panel(annotations_manager, data, book, container, onclick): set_css(container, display='flex', flex_direction='column') - container.appendChild(E.div(style='margin: 1rem')) + container.appendChild(E.div(style='padding: 1rem')) container = container.lastChild container_id = ensure_id(container) button = create_button(_('New bookmark'), 'plus', new_bookmark.bind(None, container_id, annotations_manager, data, onclick)) diff --git a/src/pyj/read_book/highlights.pyj b/src/pyj/read_book/highlights.pyj index 4e984cfe25..ed27594af2 100644 --- a/src/pyj/read_book/highlights.pyj +++ b/src/pyj/read_book/highlights.pyj @@ -909,7 +909,7 @@ def create_highlights_panel(annotations_manager, hide_panel, book, container, on _('Export'), 'cloud-download', show_export_dialog.bind(None, annotations_manager), _('Export all or selected highlights'), class_='ac-button') c = E.div( - style='margin: 1rem', + style='padding: 1rem', id=get_container_id(), E.div( style='display: flex; flex-wrap: wrap; margin-top: -1ex; align-items: center',