-
Notifications
You must be signed in to change notification settings - Fork 77
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
Enhancement: Allow calcite-shell-panel resizing #2770
Comments
This would be so dope! What are your thoughts on the hover/press/drag states? Just simple like figma, or do you want to design something more like vscode? |
I would add that this would need to be incorporated to |
It would probably be good to add a |
|
cool. what about behaviors like double clicking to expand to longest item? |
Double click to expand would be pretty cool to have, but probably not a requirement. Another wrinkle is handling items with right aligned actions. I suppose they would hug the right edge of the panel until they collide with the left edge of the item at which point they would overflow the panel. (The reality is probably more complex than that, and it might be a concern of items rather than the panel, but I think that'd be the target behavior.) |
Since you can't predict what content will be in the panel, and what components will be used for that content, this would over complicate things. I'm in favor of just simple implementation. Maybe not even put a max on it. We follow the principle of "let the user be in control of their workspace." So if they want the left panel 800px wide, let em. |
Panels can still be open/closed by using the actions in the action bar |
This looks like a solid enhancement for when the Shell is in its default state ( There are some UX concerns we'd want to address for when That being said, if this needs priority, we could
|
@bpatterson88 I believe this would actually be an enhancement to ShellPanel and Shell. |
This should be done in |
I could take this one once we get the form epic completed. Not for this sprint though. |
@asangma do we have a design for this? |
#2770 (#3535) * WIP * WIP * add note * feat(shell-panel): Add resizable property to allow resizing of content. #2770 * cleanup * Property description * tests & cleanup * add story * review fixes * Add separator styles * only allow resizing when detached is false. Co-authored-by: Adam Tirella <adam@tirel.la>
Installed and assigned for verification. |
Tried implementing this and it's looking great! However, I found when dir=rtl resizing seems to be inverted (please see this codepen) |
I was also wondering if there's a way to set both the min and max width when it's resizable? For example, it would be nice to have the |
I'll fix the RTL part. 👍 |
This is not possible at the moment, the only props added for this were |
@benelan Is there a plan to make this more flexible? As mentioned above, Dashboards requires the ability to resize panels to a maximum width of at least |
Can you please create an enhancement for that? |
here is an example of the current functionality https://codepen.io/benesri/pen/JjroXgd |
Installed and assigned for verification. |
verified on next |
Description
Allow users to resize calcite-panel with click and drag.
Acceptance Criteria
Relevant Info
Changing the width of the panel through width-scale property (M->L) doesn't leave enough room for the dashboard preview.
Which Component
calcite-panel
Example Use Case
ArcGIS Dashboards is planning to place calcite-tree in calcite-panel. Users will be able to add items to calcite-tree, potentially creating a tree that is too wide for calcite-panel, causing a breakdown in the UI. It would be very nice if users could resize calcite-panel by clicking and dragging the right border.
This interaction is pretty common in similar UIs:
The text was updated successfully, but these errors were encountered: