Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to add a data-pane-collapsed attribute? #32

Open
nooblyf opened this issue Jul 1, 2024 · 1 comment · May be fixed by #35
Open

Possible to add a data-pane-collapsed attribute? #32

nooblyf opened this issue Jul 1, 2024 · 1 comment · May be fixed by #35
Labels
enhancement New feature or request

Comments

@nooblyf
Copy link

nooblyf commented Jul 1, 2024

Describe the feature in detail (code, mocks, or screenshots encouraged)

Because it is very complex to do collapsed size in pixels from what i see from the previous issues, I am trying to set the max height/width of a collapsed pane.

I know it's possible to do this with a state and using the pane API, but it would be really handy to have a data attribute giving out this information because then we'll be able to do it just like this

data-[pane-collapsed]:max-w-[48px]

data-[pane-expanded]:max-w-none

What type of pull request would this be?

Enhancement

Provide relevant links or additional information.

No response

@nooblyf nooblyf added the enhancement New feature or request label Jul 1, 2024
@huntabyte
Copy link
Member

This is a good idea!

@huntabyte huntabyte linked a pull request Jul 31, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants