postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.81k stars 839 forks source link

Sidebar auto-collapses / won't stay open #12036

Open cskopec opened 1 year ago

cskopec commented 1 year ago

Is there an existing issue for this?

Describe the Issue

I just updated to v10.14.4 (UI v10.14.4-ui-230517-1039) and the sidebar won't stay open, making it impossible to navigate to collections. environment, history, etc.

Steps To Reproduce

  1. Open v10.14.4
  2. Click on the Collections tab in the sidebar
  3. The sidebar briefly opens but closes again before you can interact with it.
  4. Click the Environments tab
  5. You'll see the same behavior where it briefly opens but closes again before you can interact with it
  6. Try dragging the sidebar handle to expand it
  7. The sidebar will continually try to collapse when you stop moving your cursor. It will snap open again when you drag as long as your mouse button is still held down

Screenshots or Videos

https://share.getcloudapp.com/mXuDkQbJ

Operating System

macOS

Postman Version

10.14.4

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

No response

diptarag commented 1 year ago

@cskopec Hi We recently made a few changes in sidebar interaction. One of the change was to close the sidebar if you click on the active option again. To illustrate - if your sidebar is already open and collection is the active option, if you click again on collection then sidebar will close. Looking at the video you shared, it seems somehow 2 clicks are being registered in rapid succession - while the first click opens the sidebar, the second one closes it immediately. Can you please check if a single click in your mouse is resulting in 2 consecutive clicks. I found this codepen a useful resource to quickly check for such issue. Disclaimer - I am not the author of the codepen, I found the link in community and I would take the same approach to detect mouse double click.

Also can you try any of the following and share the result with us -

  1. Try expanding the sidebar by right clicking on sidebar -> Expand sidebar

    Screenshot 2023-05-20 at 1 10 01 PM
  2. Alternatively you can expand the sidebar using the left most status bar icon

    Screenshot 2023-05-20 at 1 10 17 PM
  3. Or you can use keyboard shortcut - Cmd + \ to expand the sidebar

We are trying to figure out the root cause of the issue. Once we understand what's causing the behavior, we will think of a solution.

cskopec commented 1 year ago

@diptarag, sorry for the delay in responding... when I was experiencing this issue, none of the 3 options you mentioned helped. Clicking the icon in the status bar, the CMD + \ shortcut and right click -> Expand sidebar all briefly showed the sidebar but it collapsed again before I could interact with it.

This post on the community forum led me down a rabbit hole of changing screen resolutions that eventually seems to have fixed what I was seeing.

I believe (and have no data to back it up) that in my previous version of Postman I had the sidebar width set narrower than what 10.4.4 allows for the expanded sidebar, when I tried expanding the sidebar it was expanding to the width I had previously set and then collapsing because it narrower than "allowed". I'm no longer able to reproduce this and I suspect that when I was playing around with screen resolutions after reading that post, the sidebar was set (likely by me) to an "allowed" width and has remained now that I'm back on my regular resolution.

In video form, I believe my sidebar width when I updated was somewhere between the collapsed width and the minimum width shown here https://share.getcloudapp.com/6quJK7d6

Now that I've got it working and staying open I'm all set, but may prove confusing for other users updating from an older version (mine was probably fairly out of date to be honest).

philstyler commented 1 year ago

When moving Postman to another monitor, the sidebar auto-collapses by default. It did not do this before. Version = 10.14.7

MikevanDongen commented 1 year ago

A similar issue occurs when having two Postman Windows open at the same time, while one is maximized on screen A and another is windowed on screen B. The sidebar works fine on screen B and auto-collapses when clicking somewhere else. On screen A however, the sidebar immediately collapses after opening it.

When having both windows maximized the sidebar works fine, but when I resize the window on screen B, the sidebars of both windows collapse.


Postman for Windows Version 10.15.8 UI Version 10.15.8-ui-230706-0915 Desktop Platform Version 10.15.0 Architecture x64 OS Platform win32 10.0.22621