Dict: make html and text results look similar (#3582)

pull/3584/head
poire-z 6 years ago committed by Frans de Jonge
parent bfb07c79ef
commit 262e55d0ae

@ -160,6 +160,9 @@ end
function DictQuickLookup:getHtmlDictionaryCss()
-- Using Noto Sans because Nimbus doesn't contain the IPA symbols.
-- 'line-height: 1.3' to have it similar to textboxwidget,
-- and follow user's choice on justification
local css_justify = G_reader_settings:nilOrTrue("dict_justify") and "text-align: justify;" or ""
local css = [[
@page {
margin: 0;
@ -168,6 +171,8 @@ function DictQuickLookup:getHtmlDictionaryCss()
body {
margin: 0;
line-height: 1.3;
]]..css_justify..[[
}
]]

Loading…
Cancel
Save