Giter Site home page Giter Site logo

Comments (8)

colebemis avatar colebemis commented on June 3, 2024 1

I dug into this behavior a bit today. It looks like what's happening is the effective "min width" of the content changes from 959px to 511px as you shrink the viewport. When that switch happens, the pane expands to fill the space. I'd love to get some design input on what the expected behavior should be here. I'm going to move this back to the inbox so we can discuss in the next maintainer sync.

from components.

colebemis avatar colebemis commented on June 3, 2024 1

@jdrush89 Are there any places in the GitHub UI where this behavior is causing issues? Seeing a real-world example would help us decide on what the correct behavior should be and what the priority of this issue is.

from components.

langermank avatar langermank commented on June 3, 2024

@colebemis I believe that if a user resizes the pane, that size should remain the same even if the viewport changes until it hits a responsive breakpoint that would control visibility (like if it then stacks, the width would be full).

from components.

jdrush89 avatar jdrush89 commented on June 3, 2024

@colebemis yes, you can see it on the codeview if you expand the tree on a wide screen, then shrink the window size.
Here's a repro on https://github.com/github/github/tree/master/.devcontainer

Edit: it seems like uploading videos to issues isn't working right now, but I'll attach whenever it's fixed.

from components.

jdrush89 avatar jdrush89 commented on June 3, 2024

I don't know what is wrong with issues, but I still can't attach videos. Zach has one on slack if that's helpful.
https://github-grid.enterprise.slack.com/files/UM038LRNF/F05BYRDLM08/funny-tree-view-panel.mov

from components.

jdrush89 avatar jdrush89 commented on June 3, 2024

Finally got it
https://github.com/primer/react/assets/955442/33b7cb9b-8a7d-4914-ae11-ddd5de5de137

from components.

colebemis avatar colebemis commented on June 3, 2024

Ah, I see. Thanks for the video @jdrush89. @langermank and I did some investigation into this issue and it's trickier than we expected to fix it. I spoke with @lesliecdubs and we both agree that this is a low priority bug since not many people resize their browser windows.

If your main concern is that the min width of the main content is too narrow at small viewports, that can be adjusted here:

'--pane-max-width-diff': '511px',

from components.

github-actions avatar github-actions commented on June 3, 2024

Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days.

from components.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.