mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Dict: make html and text results look similar (#3582)
This commit is contained in:
@@ -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..[[
|
||||
}
|
||||
]]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user