mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Minimizee 2-colors selection glitch for Babylon dictionaries. The source problem is that some html dont a well-formed structured (inline elements are not placed within block-level elements)
This commit is contained in:
parent
68b847f02b
commit
2cf52b3796
|
@ -17,6 +17,12 @@ body
|
|||
color: #fff;
|
||||
}
|
||||
|
||||
/* Don't allow to select [] */
|
||||
:before, :after {
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
/* Plaintext dictionaries are usually 80-column formatted and take a lot
|
||||
* of space. We try to use smaller fonts for them therefore. */
|
||||
pre
|
||||
|
@ -2601,4 +2607,3 @@ in bg url to hide it from iemac */
|
|||
|
||||
.mwiki .infl-inline { display: inline }
|
||||
.mwiki .infl-table { display: none }
|
||||
|
||||
|
|
4
bgl.cc
4
bgl.cc
|
@ -702,7 +702,7 @@ void BglArticleRequest::run()
|
|||
if ( dict.idxHeader.langTo == hebrew )
|
||||
result += "<div class=\"bglrtl\">" + i->second.second + "</div>";
|
||||
else
|
||||
result += i->second.second ;
|
||||
result += "<div>" + i->second.second + "</div>";
|
||||
result += cleaner;
|
||||
}
|
||||
|
||||
|
@ -718,7 +718,7 @@ void BglArticleRequest::run()
|
|||
if ( dict.idxHeader.langTo == hebrew )
|
||||
result += "<div class=\"bglrtl\">" + i->second.second + "</div>";
|
||||
else
|
||||
result += i->second.second ;
|
||||
result += "<div>" + i->second.second + "</div>";
|
||||
result += cleaner;
|
||||
}
|
||||
// Do some cleanups in the text
|
||||
|
|
Loading…
Reference in a new issue