From aaeee5f7a30859196fe01dcc0cc44779daea2e21 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 5 Feb 2024 14:23:06 +0530 Subject: [PATCH] Fix #2049968 [[Enhancement - E-book viewer] Unnecessary separator in Preferences > Shortcuts sections](https://bugs.launchpad.net/calibre/+bug/2049968) --- src/pyj/read_book/prefs/keyboard.pyj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pyj/read_book/prefs/keyboard.pyj b/src/pyj/read_book/prefs/keyboard.pyj index 36802c92d6..8e2d23abf1 100644 --- a/src/pyj/read_book/prefs/keyboard.pyj +++ b/src/pyj/read_book/prefs/keyboard.pyj @@ -55,10 +55,12 @@ def remove_key(evt): def key_widget(key): + icon = svgicon('remove') + icon.style.verticalAlign = 'baseline' return E.tr( data_shortcut=JSON.stringify(keyevent_as_shortcut(key)), - E.td(style="padding: 0.5rem; border-right: solid 3px; margin-right: 0.5rem; margin-top: 0.5rem", key_as_text(key)), - E.td(E.a(class_='simple-link', '\xa0', svgicon('remove'), ' ', _('Remove'), onclick=remove_key)), + E.td(style="padding: 0.5rem; border-right: solid 1px; margin-right: 0.5rem; margin-top: 0.5rem", key_as_text(key)), + E.td(style="padding: 0.5rem; margin-top: 0.5rem; vertical-align: bottom", E.a(class_='simple-link', '\xa0', icon, ' ', _('Remove'), onclick=remove_key)), )