Skip to content

Issue controls panel UI #81

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Yahiewi
Copy link
Contributor

@Yahiewi Yahiewi commented Apr 23, 2025

Made the controls panel resizable to manly fix the issue of joint names being too long to read:
-Added the pseudo element .urdf-gui::before in base.css for the invisible handle.
-Added a min and max width for the panel.
-Overwritten style for the "close controls" button to fix some issues.
-Added a function _setupResizeHandling in controls.ts to implement this.

Copy link
Contributor

Binder 👈 Launch a Binder on branch Yahiewi/jupyterlab-urdf/issue-controls-panel-ui

@IsabelParedes IsabelParedes added bug Something isn't working enhancement New feature or request labels Apr 23, 2025
@Yahiewi Yahiewi force-pushed the issue-controls-panel-ui branch from 7403b2d to 2246948 Compare April 23, 2025 15:08
@IsabelParedes
Copy link
Member

Resolves #57

Copy link
Member

@IsabelParedes IsabelParedes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gui short gui long

This is going in the right direction, but it could be better. At the moment, when the panel is resized, all 3 columns (joint names, sliders, and input boxes) stretch. We should keep the width of the sliders and input boxes fixed so that the joint names can occupy the newly created space when resizing the gui.

@@ -123,7 +123,7 @@ export class URDFRenderer extends THREE.WebGLRenderer {
* Adds three lights to the scene
*/
private _addLights(): void {
const directionalLight = new THREE.DirectionalLight(0xffffff, 1.0);
const directionalLight = new THREE.DirectionalLight(0xff0000, 1.0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes to the lighting are not related to what this PR is trying to fix. These changes should be moved to a separate PR.

// Add resize functionality
this._setupResizeHandling({
minWidth: 150,
maxWidth: 500,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's better to not restrict the max width. If the user wants the gui to occupy the full width of the window, that should be possible and it might be useful for extra long joint names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants