removed useless popup buttons
This commit is contained in:
@@ -118,18 +118,7 @@ pub fn view(bar: &Bar) -> Element<'_, Message> {
|
||||
})
|
||||
.unwrap_or_else(|| text("unknown module").into());
|
||||
|
||||
container(
|
||||
column![
|
||||
text(format!("{} menu", module_id))
|
||||
.size(14)
|
||||
.width(Length::Fill)
|
||||
.align_x(Alignment::Center),
|
||||
content,
|
||||
mouse_area(container(text("close").size(12)).style(pill))
|
||||
.on_press(Message::Effect(ModuleEffect::ClosePopup(popup_id))),
|
||||
]
|
||||
.spacing(1),
|
||||
)
|
||||
container(column![content,].spacing(1))
|
||||
.padding(Padding::from(4))
|
||||
.style(|theme| container::Style {
|
||||
text_color: None,
|
||||
|
||||
Reference in New Issue
Block a user