fix(interface): 修复显示问题

This commit is contained in:
2025-12-21 05:47:22 +08:00
parent f5e0417292
commit a0660d3348
3 changed files with 10 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ timezone_offset = +28800 # 中国标准时间 (UTC+8)
[interface]
[interface.memorizor]
autovoice = true # 自动语音播放, 仅限于 recognition 组件
autovoice = false # 自动语音播放, 仅限于 recognition 组件
[puzzles] # 谜题默认配置

View File

@@ -65,6 +65,12 @@ class MCQPuzzle(BasePuzzleWidget):
self.alia
]
logger.debug(f"Puzzle Setting: {setting}")
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(self.puzzle.wording[len(self.inputlist)], id="puzzle")

View File

@@ -72,7 +72,8 @@ class Recognition(BasePuzzleWidget):
primary = cfg["primary"]
with Center():
yield Static(f"[dim]{cfg['top_dim']}[/]")
for i in cfg['top_dim']:
yield Static(f"[dim]{i}[/]")
yield Label("")
for old, new in replace_dict.items():