wagoodman/dive

Layers pane doesn't scroll when navigating to layer below visible region

matt-winfield opened this issue ยท 8 comments

What happened:
When viewing an image with more layers than can fit in the "layers" pane, when navigating down to a layer not visible, the pane does not scroll to show it. PageUp / PageDown keys also do not scroll the pane.

What you expected to happen:
The pane should scroll to keep the currently selected layer visible

How to reproduce it (as minimally and precisely as possible):
Open an image with enough layers to not fit into the pane
Navigate down until you go beyond the visible layers.

Environment:

  • OS version - Windows 10 Pro, 22H2, 19045.3324
  • Powershell and Command Prompt, Windows Terminal
  • Docker version - 20.10.16

See comment.

I have something in progress, but it's not ready yet, hopefully soon.

Screenshot_20230820_181418
Layer Details is missing layer size.
Which makes not accessible info beyond navigating list.
Will be nice adding layer size into Layer Details ๐Ÿ˜„

TIP: This is a pretty limiting bug and older versions are not available on macOS brew. To workaround it try:

docker run -ti -v /var/run/docker.sock:/var/run/docker.sock wagoodman/dive:v0.10.0 IMAGE:TAG

Btw it doesn't show the full command line though of each RUN so that limits usefulness if you use --build-arg's.

Could you please give #473 a spin to see if it works well enough?

@mark2185 I've built your branch on Ubuntu 22.04 after having the scrolling bug with v0.11.0, and the bug still happens on your PR branch, built with golang 1.21 :(

Any update on this ? I have quiet a lot of layers in my image :(

I just submitted a fix that works for me #478

st-gr commented

@dd84ai: I added the size information to the layer details view (PR 522)
I also added scrolling in the layers view see (PR 521)