-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: make panels resizable #623
Conversation
Deploying with Cloudflare Pages
|
Test this pull request
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #623 +/- ##
==========================================
+ Coverage 72.84% 73.24% +0.39%
==========================================
Files 267 266 -1
Lines 8816 8813 -3
Branches 1153 1155 +2
==========================================
+ Hits 6422 6455 +33
+ Misses 2277 2243 -34
+ Partials 117 115 -2
☔ View full report in Codecov by Sentry. |
Closes decentraland/sdk#763
In this PR I made all the panels resizable, moved the EntityInspector to a new panel on the right, and changed the styles of the Hierarchy and EntityInspector components to match the Assets footer styles (vscodish)
resize-panels.mp4
🤖 Generated by Copilot at b2e294d
This pull request improves the inspector UI by replacing the custom Resizable component with the
react-resizable-panels
library, updating the layout and styling of the inspector panels, and adding some hooks and attributes to enhance the functionality and integration of the inspector UI. It also adds some unit tests for the new useWindowSize hook, which returns the window size. It modifies several files in thepackages/@dcl/inspector
folder, such aspackage.json
,package-lock.json
,App.tsx
,App.css
,Assets.tsx
,Assets.css
,EntityInspector.tsx
,EntityInspector.css
,Hierarchy.tsx
,Hierarchy.css
,useWindowSize.ts
, anduseWindowSize.spec.ts
. It also deletes the files related to the Resizable component, such asResizable.tsx
,Resizable.css
,index.ts
, andtypes.ts
.