diff options
Diffstat (limited to 'gui-project/cards.py')
-rw-r--r-- | gui-project/cards.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gui-project/cards.py b/gui-project/cards.py index ac921b3..ededff9 100644 --- a/gui-project/cards.py +++ b/gui-project/cards.py @@ -35,19 +35,19 @@ class CardUI(): def init_front(self): with self.row_parent: - with ui.card().classes('bg-frontc w-[600px] h-[200px] mx-auto') as self.front: + with ui.card().classes('bg-frontc w-[600px] mx-auto') as self.front: ui.markdown("**Front**") ui.separator() - ui.markdown(self.card.get_front()) + ui.markdown(self.card.get_front()).style('white-space: pre-wrap') ui.button("Revert", on_click=lambda: self.revert_card()) self.front.set_visibility(False) def init_back(self): with self.row_parent: - with ui.card().classes('bg-back w-[600px] h-[200px] mx-auto') as self.back: + with ui.card().classes('bg-back w-[600px] mx-auto') as self.back: ui.markdown("_Back_") ui.separator() - ui.markdown(self.card.get_back()) + ui.markdown(self.card.get_back()).style('white-space: pre-wrap') with ui.button_group(): ui.button("Got it", on_click=lambda: self.user_clicked_correct()) ui.button("Ain't got it", on_click=lambda: self.user_clicked_incorrect()) |