Adding words by parts
This commit is contained in:
1 parent
8f789facd7
commit
51c8d7be74
23 files changed
+409
-241
No files matched your search
+8
-9
@@ -23,8 +23,7 @@ impl NavigatedPage<HistoryMessage> for HistoryState {
|
||||
Back => Some(Page::PreviousPage),
|
||||
}
|
||||
}
|
||||
fn navigated(&mut self) {
|
||||
}
|
||||
fn navigated(&mut self) {}
|
||||
fn update(&mut self, _: HistoryMessage) -> Task<RootMessage> {
|
||||
Task::none()
|
||||
}
|
||||
@@ -38,9 +37,9 @@ impl NavigatedPage<HistoryMessage> for HistoryState {
|
||||
.width(FillPortion(5)),
|
||||
horizontal().width(FillPortion(1))
|
||||
]
|
||||
.height(Fill)
|
||||
.width(Fill)
|
||||
.into(),
|
||||
.height(Fill)
|
||||
.width(Fill)
|
||||
.into(),
|
||||
Back,
|
||||
)
|
||||
}
|
||||
@@ -68,8 +67,6 @@ impl HistoryState {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
fn history_lines(&self) -> Column<'_, HistoryMessage> {
|
||||
let mut column = Column::new();
|
||||
for (item, index) in self.list.iter().zip(0..self.list.len()) {
|
||||
@@ -86,11 +83,13 @@ impl HistoryState {
|
||||
.align_x(Center),
|
||||
iced::widget::column![
|
||||
text!("{} ➞ {}", item.before, item.after),
|
||||
text!("{}", item.timestamp.with_timezone(&Local).format("%d.%m %H:%M"))
|
||||
text!(
|
||||
"{}",
|
||||
item.timestamp.with_timezone(&Local).format("%d.%m %H:%M")
|
||||
)
|
||||
]
|
||||
.spacing(5)
|
||||
.align_x(Center)
|
||||
|
||||
]
|
||||
.spacing(5),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user