mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Opt: Limit max width of log
This commit is contained in:
parent
f134dae3ab
commit
aea4c81b0b
@ -118,7 +118,7 @@ class RichLog:
|
||||
$('#pywebio-scope-{scope}').css('font-size').slice(0, -2)/text.width*16;\
|
||||
""".format(scope=self.scope)
|
||||
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):
|
||||
# js = """
|
||||
|
||||
Loading…
Reference in New Issue
Block a user