Skip to content

Narrow Git History panel stops responding after tapping Branches on an empty or failed view #22

Description

@Defmon3

Seen on: component/git-history

What it fixes

On a phone-width or narrow right panel, Git History shows Branches and Details buttons in its header. If the history list is empty, failed to load, or the folder is not a repository, tapping Branches opens nothing, and the whole header, including Refresh, stops responding to taps. The only way out is to switch to another tab and back.

How to fix it

The branches and details sheets should exist in every panel state, not only when commits are loaded, or the header buttons should be disabled in the states that cannot show them. Either way, a tap on Branches must never leave the header inert with no sheet to close. Ships with a test for the error state in narrow layout.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions