diff --git a/answer_buttons.py b/answer_buttons.py index 69ebc10..e09f688 100644 --- a/answer_buttons.py +++ b/answer_buttons.py @@ -42,29 +42,6 @@ def filter_answer_buttons(buttons: tuple, self: Reviewer, _: Card) -> tuple[tupl return buttons -def get_ease_row_css() -> str: - return """ - - """ def make_buttonless_ease_row(self: Reviewer, front: bool = False) -> str: @@ -95,7 +72,7 @@ def stat_txt(): ease_row.extend(button_time(ease) for ease, label in self._answerButtonList()) if front is True: ease_row.insert(len(ease_row) // 2, stat_txt()) - return get_ease_row_css() + f'
{"".join(ease_row)}
' + return EASE_ROW_STYLE + f'
{"".join(ease_row)}
' def disable_buttons(html: str) -> str: diff --git a/consts.py b/consts.py index 642cb7b..1c2334f 100644 --- a/consts.py +++ b/consts.py @@ -9,6 +9,28 @@ Please enable the V2 scheduler in Preferences. """ +EASE_ROW_STYLE = """ + +""" BOTTOM_TABLE_STYLE = """