mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Remove unneeded spacers (#2208)
This commit is contained in:
parent
e9430fde3b
commit
7768262086
1 changed files with 7 additions and 6 deletions
|
@ -799,13 +799,14 @@ time = %(time)d;
|
|||
return buf
|
||||
|
||||
def _buttonTime(self, i: int, v3_labels: Sequence[str] | None = None) -> str:
|
||||
if not self.mw.col.conf["estTimes"]:
|
||||
return "<div class=spacer></div>"
|
||||
if self.mw.col.conf["estTimes"]:
|
||||
if v3_labels:
|
||||
txt = v3_labels[i - 1]
|
||||
else:
|
||||
txt = self.mw.col.sched.nextIvlStr(self.card, i, True) or " "
|
||||
return f"<span class=nobold>{txt}</span>"
|
||||
txt = self.mw.col.sched.nextIvlStr(self.card, i, True) or ""
|
||||
return f"""<span class="nobold">{txt}</span>"""
|
||||
else:
|
||||
return ""
|
||||
|
||||
# Leeches
|
||||
##########################################################################
|
||||
|
|
Loading…
Reference in a new issue