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

workspace: fix path alignment in dialogs #10814

Merged
merged 1 commit into from
Mar 3, 2022
Merged

Conversation

vince-fugnitto
Copy link
Member

What it does

Closes: #10567.

The pull-request updates the path alignment for the workspace dialog (ex: new file, new folder) so that the content is properly aligned with the icon:

image

The change also adds the folder path to the label's title (displayed when hovering).

How to test

  1. start the application
  2. confirm that the path alignment in new file and new folder are correct
  3. repeat step 2 using different paths - root of the workspace, nested subdirectories

Review checklist

Reminder for reviewers

Signed-off-by: vince-fugnitto vincent.fugnitto@ericsson.com
Co-authored-by: shuyaqian 717749594@qq.com

The commit fixes the alignment when displaying the path in the workspace
input dialog (ex: new file, new folder). The path is now correctly
aligned with the icon.

The change also includes the full path to the folder when hovering over
the label (useful for multi-root workspaces especially).

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
Co-authored-by: shuyaqian <717749594@qq.com>
@vince-fugnitto vince-fugnitto added dialogs issues related to dialogs ui/ux issues related to user interface / user experience labels Feb 28, 2022
@vince-fugnitto vince-fugnitto self-assigned this Feb 28, 2022
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

The change is looking good to me 👍

There is one thing I noticed regarding the new title property. Like in other places we simply use URI#path.toString(), which leads to unexpected behavior on Windows:

image

However, that shouldn't be fixed by this PR but rather in #10591.

Copy link
Contributor

@colin-grant-work colin-grant-work left a comment

Choose a reason for hiding this comment

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

👍 from me as well

@vince-fugnitto vince-fugnitto merged commit 1fbb7fe into master Mar 3, 2022
@vince-fugnitto vince-fugnitto deleted the vf/workspace-dialog branch March 3, 2022 16:23
@github-actions github-actions bot added this to the 1.24.0 milestone Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dialogs issues related to dialogs ui/ux issues related to user interface / user experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants