mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-02 14:11:13 +08:00
Opt: Limit max width of log
This commit is contained in:
@@ -118,7 +118,7 @@ class RichLog:
|
|||||||
$('#pywebio-scope-{scope}').css('font-size').slice(0, -2)/text.width*16;\
|
$('#pywebio-scope-{scope}').css('font-size').slice(0, -2)/text.width*16;\
|
||||||
""".format(scope=self.scope)
|
""".format(scope=self.scope)
|
||||||
width = eval_js(js)
|
width = eval_js(js)
|
||||||
return int(width) if width else 80
|
return 80 if width is None else 128 if width > 128 else int(width)
|
||||||
|
|
||||||
# def _register_resize_callback(self):
|
# def _register_resize_callback(self):
|
||||||
# js = """
|
# js = """
|
||||||
|
|||||||
Reference in New Issue
Block a user