Skip to content

fix: add scrollable wrapper to device views#586

Open
debarkak wants to merge 1 commit intokavishdevar:linux/rustfrom
debarkak:linux/rust
Open

fix: add scrollable wrapper to device views#586
debarkak wants to merge 1 commit intokavishdevar:linux/rustfrom
debarkak:linux/rust

Conversation

@debarkak
Copy link
Copy Markdown

@debarkak debarkak commented May 7, 2026

what was the issue

so when you resize the window to be smaller, the content in the device view just gets clipped and theres no way to scroll to see the rest. this is because the outer container in airpods_view and nothing_view had .height(Length::Fill) which tells iced to just stretch the container to fill whatever space is available and clip anything that doesnt fit, instead of actually scrolling.

what i changed

  • changed .height(Length::Fill) to .height(Length::Shrink) in airpods.rs (line 523) and nothing.rs (line 178) so the content sizes to its natural height instead of forcing itself to fill the pane
  • wrapped both airpods_view and nothing_view calls in window.rs with container(scrollable(view).height(Length::Fill)) so the views actually scroll when the window is too small to fit everything

the scrollable widget was already imported in window.rs so no new imports needed

testing

compiled and tested on fedora linux 43 on gnome with airpods 4 anc, resizing the window small now scrolls properly instead of clipping

the issue was mentioned by kavish on discord, i didn't even notice it until he mentioned it lol

screencast (testing)

Screencast.From.2026-05-07.13-46-56.mp4

@debarkak
Copy link
Copy Markdown
Author

debarkak commented May 7, 2026

this PR is related to #241

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant