fix(interface): 修复显示问题
This commit is contained in:
@@ -17,7 +17,7 @@ timezone_offset = +28800 # 中国标准时间 (UTC+8)
|
|||||||
[interface]
|
[interface]
|
||||||
|
|
||||||
[interface.memorizor]
|
[interface.memorizor]
|
||||||
autovoice = true # 自动语音播放, 仅限于 recognition 组件
|
autovoice = false # 自动语音播放, 仅限于 recognition 组件
|
||||||
|
|
||||||
[puzzles] # 谜题默认配置
|
[puzzles] # 谜题默认配置
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,13 @@ class MCQPuzzle(BasePuzzleWidget):
|
|||||||
self.alia
|
self.alia
|
||||||
]
|
]
|
||||||
logger.debug(f"Puzzle Setting: {setting}")
|
logger.debug(f"Puzzle Setting: {setting}")
|
||||||
current_options = self.puzzle.options[len(self.inputlist)]
|
logger.debug(f"WIRED INDEX: {len(self.inputlist)}")
|
||||||
|
if len(self.inputlist) > len(self.puzzle.options):
|
||||||
|
logger.debug("ERR IDX")
|
||||||
|
logger.debug(self.inputlist)
|
||||||
|
logger.debug(self.puzzle.options)
|
||||||
|
else:
|
||||||
|
current_options = self.puzzle.options[len(self.inputlist)]
|
||||||
yield Label(setting["primary"], id="sentence")
|
yield Label(setting["primary"], id="sentence")
|
||||||
yield Label(self.puzzle.wording[len(self.inputlist)], id="puzzle")
|
yield Label(self.puzzle.wording[len(self.inputlist)], id="puzzle")
|
||||||
yield Label(f"当前输入: {self.inputlist}", id="inputpreview")
|
yield Label(f"当前输入: {self.inputlist}", id="inputpreview")
|
||||||
|
|||||||
@@ -72,7 +72,8 @@ class Recognition(BasePuzzleWidget):
|
|||||||
primary = cfg["primary"]
|
primary = cfg["primary"]
|
||||||
|
|
||||||
with Center():
|
with Center():
|
||||||
yield Static(f"[dim]{cfg['top_dim']}[/]")
|
for i in cfg['top_dim']:
|
||||||
|
yield Static(f"[dim]{i}[/]")
|
||||||
yield Label("")
|
yield Label("")
|
||||||
|
|
||||||
for old, new in replace_dict.items():
|
for old, new in replace_dict.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user