Skip to content

Commit

Permalink
fix: dropdown issue
Browse files Browse the repository at this point in the history
- Added max width to content column.
- Added title to about context drawer.
  • Loading branch information
edfloreshz committed Nov 20, 2024
1 parent 3358526 commit 277536f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 90 deletions.
105 changes: 15 additions & 90 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ impl Application for Tasks {
Some(match self.context_page {
ContextPage::About => {
app::context_drawer::about(&self.about, Message::Open, Message::ToggleContextDrawer)
.title(self.context_page.title())
}
ContextPage::Settings => {
app::context_drawer::context_drawer(self.settings(), Message::ToggleContextDrawer)
Expand Down
2 changes: 2 additions & 0 deletions src/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,11 @@ impl Content {
.push(self.list_view(list))
.push(self.new_task_view())
.spacing(spacing.space_xxs)
.max_width(800.)
.apply(widget::container)
.height(Length::Fill)
.width(Length::Fill)
.center(Length::Fill)
.into()
}

Expand Down

0 comments on commit 277536f

Please sign in to comment.