From a3e3c425c58f07cacdbc8915c8f0122c138527a0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 29 Aug 2022 07:33:30 +0530 Subject: [PATCH] E-book viewer: Lookup: Google dictionary: Add some padding at the left and right margins. Fixes #1986963 [No padding/margin within the dictionary frame within EPUB](https://bugs.launchpad.net/calibre/+bug/1986963) --- resources/lookup.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/lookup.js b/resources/lookup.js index 83737bc30d..73f61846af 100644 --- a/resources/lookup.js +++ b/resources/lookup.js @@ -32,6 +32,8 @@ cc.style.position = 'absolute'; cc.style.top = '0'; cc.style.left = '0'; + cc.style.paddingLeft = '6px'; + cc.style.paddingRight = '6px'; var remove = ['sfcnt', 'top_nav', 'before-appbar', 'appbar', 'searchform', 'easter-egg', 'topstuff']; remove.forEach(function(id) { var elem = document.getElementById(id);