mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
linedis
This commit is contained in:
parent
8c58822c93
commit
ba9e4a6e31
@ -179,6 +179,12 @@ class TextBrowser(QWidget, dataget):
|
||||
|
||||
fm, fs, bold = self._getfontinfo(origin)
|
||||
text = self.gen_html(text, fm, fs, bold, atcenter, color)
|
||||
_id_wrap = f"luna_{uuid.uuid4()}"
|
||||
text = f"""<div id="{_id_wrap}">{text}</div><style>
|
||||
#{_id_wrap}{{
|
||||
margin-bottom:{globalconfig["extra_space"]}px
|
||||
}}
|
||||
</style>"""
|
||||
self.testeval(f"document.getElementById(`{_id}`).innerHTML=`{text}`")
|
||||
self.internalheighchange()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user