Git Product home page Git Product logo

Comments (7)

Codehagen avatar Codehagen commented on May 20, 2024 1

Was this what we where talking about @JamesSingleton 👀

from badget.

Codehagen avatar Codehagen commented on May 20, 2024 1

Go insane @miralsuthar ✨ 😄

from badget.

Codehagen avatar Codehagen commented on May 20, 2024 1

The values is from a project that was before, i think this is changed. You can just experiment and see if it works. Thats my main concern right now. Thanks for the comment.

from badget.

JamesSingleton avatar JamesSingleton commented on May 20, 2024

@meglerhagen yea, the error you're getting on the onCollapse is because this project is using the 1.x of the react resizable library whereas ShadCN expects you to use 0.55. But someone closed the original issue: #24

But also the direct middle is going to be different for every screen size, so it might be better to just determine how wide you want them. https://github.com/bvaughn/react-resizable-panels/blob/main/packages/react-resizable-panels/README.md#panel

Also, it looks like there is a defaultSizePercentage prop that can be passed to the panel according to the docs.

from badget.

Codehagen avatar Codehagen commented on May 20, 2024

I have tried, and tried @JamesSingleton . Maybe im dumb, but cant get this to work 🍅

from badget.

miralsuthar avatar miralsuthar commented on May 20, 2024

I would like to work on this

from badget.

miralsuthar avatar miralsuthar commented on May 20, 2024

Hey @meglerhagen,

Just a doubt, like on what basis this deafaultLayout are given for the default size of Resizable panels ?

image

I saw the documentation and there it says that value should be between 1 - 100.

from badget.

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.