This commit is contained in:
恍兮惚兮 2024-06-19 18:09:16 +08:00
parent 8c58822c93
commit ba9e4a6e31

View File

@ -179,6 +179,12 @@ class TextBrowser(QWidget, dataget):
fm, fs, bold = self._getfontinfo(origin) fm, fs, bold = self._getfontinfo(origin)
text = self.gen_html(text, fm, fs, bold, atcenter, color) 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.testeval(f"document.getElementById(`{_id}`).innerHTML=`{text}`")
self.internalheighchange() self.internalheighchange()