Fix/workaround row/column space allocation
This commit is contained in:
parent
4f01de3c46
commit
e781ea0d34
1 changed files with 2 additions and 4 deletions
|
|
@ -485,6 +485,7 @@ fn workspace_sidebar_entry(workspace: &Workspace) -> cosmic::Element<Msg> {
|
|||
.style(theme)
|
||||
.on_press(Msg::ActivateWorkspace(workspace.handle.clone())),
|
||||
]
|
||||
.height(iced::Length::Fill)
|
||||
.into()
|
||||
}
|
||||
|
||||
|
|
@ -497,13 +498,9 @@ fn workspaces_sidebar<'a>(
|
|||
.into()
|
||||
|
||||
// New workspace
|
||||
// Show empty workspace same size as others
|
||||
}
|
||||
|
||||
fn toplevel_preview(toplevel: &Toplevel) -> cosmic::Element<Msg> {
|
||||
// capture of window
|
||||
// - selectable
|
||||
// name of window
|
||||
widget::column![
|
||||
close_button(Msg::CloseToplevel(toplevel.handle.clone())),
|
||||
widget::button(widget::Image::new(toplevel.img.clone().unwrap_or_else(
|
||||
|
|
@ -513,6 +510,7 @@ fn toplevel_preview(toplevel: &Toplevel) -> cosmic::Element<Msg> {
|
|||
widget::text(&toplevel.info.title)
|
||||
.horizontal_alignment(iced::alignment::Horizontal::Center)
|
||||
]
|
||||
.width(iced::Length::Fill)
|
||||
.into()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue