Fix repetition display bug and history find bug

This commit is contained in:
micialware committed 2026-08-20 00:49:49 +03:00
1 parent 3661173bb0
commit 44644500b5
11 files changed
+17 -24

No files matched your search

+2 -2
View File
@@ -11,10 +11,10 @@ use iced::keyboard::key::Physical::Code;
use iced::widget::text::Style;
use iced::widget::{Column, button, column, container, row, rule, space, text, tooltip};
use iced::{Element, Fill, Task, Theme, alignment, keyboard};
use parking_lot::Mutex;
use rodio::MixerDeviceSink;
use std::collections::HashSet;
use std::sync::Arc;
use parking_lot::Mutex;
use tokio::task::spawn_blocking;
pub struct RepetitionState {
@@ -273,7 +273,7 @@ impl RepetitionState {
}
}
fn draw_description(&self, word: &WordData) -> Element<'_, RepetitionMessage> {
match word.additional.get("context") {
match word.additional.get("description") {
None => space().into(),
Some(context) => text!("{}", context).size(24).into(),
}