Skip to content

Commit

Permalink
chore: add back the new group input label
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 authored and jackpot51 committed Jan 3, 2024
1 parent afd1d7d commit 889cb60
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 23 deletions.
40 changes: 20 additions & 20 deletions Cargo.lock

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

9 changes: 6 additions & 3 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -780,8 +780,7 @@ impl cosmic::Application for CosmicAppLibrary {
.align_x(Horizontal::Left)
.width(Length::Fixed(432.0)),
text_input("", group_name)
// FIXME text input is a bit broken
// .label(&NEW_GROUP_PLACEHOLDER)
.label(&NEW_GROUP_PLACEHOLDER)
.on_input(Message::NewGroup)
.on_submit(Message::SubmitNewGroup)
.width(Length::Fixed(432.0))
Expand All @@ -791,6 +790,7 @@ impl cosmic::Application for CosmicAppLibrary {
row![
button(
text(&CANCEL.as_str())
.size(14.0)
.horizontal_alignment(Horizontal::Center)
.width(Length::Fill)
)
Expand All @@ -799,6 +799,7 @@ impl cosmic::Application for CosmicAppLibrary {
.width(142),
button(
text(&SAVE.as_str())
.size(14.0)
.horizontal_alignment(Horizontal::Center)
.width(Length::Fill)
)
Expand Down Expand Up @@ -1041,7 +1042,9 @@ impl cosmic::Application for CosmicAppLibrary {
.height(Length::Fixed(group_icon_size))
)
.padding(spacing.space_xxs),
text("Add group").horizontal_alignment(Horizontal::Center)
text("Add group")
.size(14.0)
.horizontal_alignment(Horizontal::Center)
]
.align_items(Alignment::Center)
.width(Length::Fill),
Expand Down

0 comments on commit 889cb60

Please sign in to comment.