Adding words by parts

This commit is contained in:
2026-08-15 21:32:24 +03:00
parent 8f789facd7
commit 51c8d7be74
23 changed files with 409 additions and 241 deletions
+3 -8
View File
@@ -51,7 +51,7 @@ impl NavigatedPage<WordMessage> for WordState {
}
SetAdditional(key, value) => {
self.word.additional.insert(key, value.clone());
},
}
AddAdditional(key) => {
self.word.additional.insert(key, "".to_string());
}
@@ -143,7 +143,7 @@ impl WordState {
}
}
fn reading_field(&self, value: &str) -> Element<'_, WordMessage> {
fn reading_field(&self, value: &str) -> Element<'_, WordMessage> {
self.additional_field(value, "Чтение слова".to_string(), "reading".to_string())
}
@@ -154,12 +154,7 @@ impl WordState {
fn context_field(&self, value: &str) -> Element<'_, WordMessage> {
self.additional_field(value, "В контексте".to_string(), "context".to_string())
}
fn additional_field(
&self,
value: &str,
name: String,
id: String,
) -> Element<'_, WordMessage> {
fn additional_field(&self, value: &str, name: String, id: String) -> Element<'_, WordMessage> {
column![
text!("{}", name),
row![