mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix styling changes not updating preview
regression caused by 050ef11a96
This commit is contained in:
parent
be9bbf2157
commit
368e3d6d92
1 changed files with 3 additions and 0 deletions
|
@ -252,6 +252,9 @@ class TemplateRenderContext:
|
|||
template=to_json_bytes(self._template),
|
||||
fill_empty=self._fill_empty,
|
||||
)
|
||||
# when rendering card layout, the css changes have not been
|
||||
# committed; we need the current notetype instance instead
|
||||
out.css = self._note_type["css"]
|
||||
else:
|
||||
# existing card (eg study mode)
|
||||
out = self._col._backend.render_existing_card(
|
||||
|
|
Loading…
Reference in a new issue