Add complete keyboard navigation.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use iced::widget::{Space, button, column, container, row, scrollable, text, tooltip};
|
||||
use crate::components::keyboard;
|
||||
use iced::widget::{Space, column, container, row, scrollable, text, tooltip};
|
||||
use iced::{Alignment, Background, Color, Element, Length, Theme};
|
||||
|
||||
use bds_core::i18n::UiLocale;
|
||||
@@ -339,7 +340,7 @@ fn recent_posts<'a>(posts: &'a [DashboardRecentPost], locale: UiLocale) -> Eleme
|
||||
.map(|post| {
|
||||
container(
|
||||
row![
|
||||
button(
|
||||
keyboard::button(
|
||||
column![
|
||||
text(post.title.clone()).size(14).color(Color::WHITE),
|
||||
text(post.date.clone())
|
||||
@@ -357,7 +358,7 @@ fn recent_posts<'a>(posts: &'a [DashboardRecentPost], locale: UiLocale) -> Eleme
|
||||
}))
|
||||
.width(Length::Fill),
|
||||
status_badge(&post.status),
|
||||
button(text(t(locale, "dashboard.pin")).size(12))
|
||||
keyboard::button(text(t(locale, "dashboard.pin")).size(12))
|
||||
.on_press(Message::OpenTab(Tab {
|
||||
id: post.post_id.clone(),
|
||||
tab_type: TabType::Post,
|
||||
|
||||
Reference in New Issue
Block a user