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

Change of Dismiss action button position in Search panel #61532

Closed
IllusionMH opened this issue Oct 22, 2018 · 9 comments · Fixed by #63457
Closed

Change of Dismiss action button position in Search panel #61532

IllusionMH opened this issue Oct 22, 2018 · 9 comments · Fixed by #63457
Assignees
Labels
help wanted Issues identified as good community contribution opportunities search Search widget and operation issues under-discussion Issue is under discussion for relevance, priority, approach

Comments

@IllusionMH
Copy link
Contributor

  • VSCode Version: 1.29-insider
  • OS Version: Windows 10 Version 1809 (OS Build 18262.1000)

Steps to Reproduce:

  1. Activate Find in files and search for something that will return results
  2. Hover over different result lines
  3. Both Badge and Action button (Dismiss) are on the left (aligned to the end of result text)

I'm expecting that Dismiss action will have fixed horizontal position (on the right side) that will allow me to easily dismiss several results entries. With current position at the end of result text I have to constantly move mouse to hit Dismiss button.

In stable version both count badge (for file) and Dismiss action were aligned at the right side of the viewlet which was convenient. At this moment it is hard to filter out result entries because texts have different length and button shifts for each line.

I've found #46604 which says that button should always stay on the right side, however this isn't case in v1.28.2 independently from viewlet width (both badge and actions are on the right side).

Does this issue occur when all extensions are disabled?: Yes

Screenshot

image

@vscodebot vscodebot bot added the insiders label Oct 22, 2018
@Tyriar
Copy link
Member

Tyriar commented Oct 22, 2018

I guess this only applies to the search panel?

@Tyriar Tyriar added the search Search widget and operation issues label Oct 22, 2018
@IllusionMH IllusionMH changed the title Change of Dismiss action button position in Search viewlet Change of Dismiss action button position in Search panel Oct 22, 2018
@IllusionMH
Copy link
Contributor Author

IllusionMH commented Oct 22, 2018

Yes, I observe issue in Search panel.

UPD. Checked - same behavior when Search: Location is set to sidebar.

@roblourens
Copy link
Member

You should see the actions on the right when search is narrow, and on the left when it's somewhat wide. The reason is that when the actions are on the right and the text is aligned to the left, it can be hard to associate the two, so it seems more user-friendly to put the actions closer to the actual result. Maybe the threshold could be tweaked, but it doesn't feel good to click an action on the opposite side of the monitor from the actual text.

Does this match what you see?

@IllusionMH
Copy link
Contributor Author

Yes, that match what I see, but makes it harder to use Dismiss action with mouse.

For badge with results count - it is good position, since it is visible without hover.
On the other hands actions are only visible on hover, when background can clearly indicate what line will be dismissed. Previously (September and numerous builds before) I was able to put mouse over X and just click (even without looking) several times to remove unnecessary lines. Now it takes more time/attention to do it with mouse, and if next line after dismissed has longer text - it is easy to open file instead of dismissing it.

Open editors view (Close editor button), Source control (action buttons for files), Extensions (Manage button) - have static position of actions that are not changed with sidebar width.

My cases are 23" monitor with 1920x1080 and Surface Pro 3. Never had problems when action were on the right side. Users with 4k 30+" will have to snipe for X too.

@roblourens
Copy link
Member

Previously (September and numerous builds before) I was able to put mouse over X and just click (even without looking) several times to remove unnecessary lines.

Yes it was broken for a few months, but this was the behavior from before it was broken 😁

I see your point but I will leave this open to think about it

@roblourens roblourens added the under-discussion Issue is under discussion for relevance, priority, approach label Oct 22, 2018
@IllusionMH
Copy link
Contributor Author

@robertohuertasm thanks!

@vscodebot vscodebot bot removed the insiders label Oct 23, 2018
@AlexTelon
Copy link

Putting the dismiss button to the right would also make it less likley that someone presses it by accident which I just did.

The middle of a search result might be just above/below the end of another so that clicking just a bit above/below where you intended could lead you to remove the other search result.

@lijuenc
Copy link

lijuenc commented Nov 16, 2018

Issue 1) The dismiss buttons are too close to the actual text of the search result making it very easy to accidentally dismiss something.

Issue 2) The dismiss buttons are invisible until hover/focus. So if you had your focus on another panel or another window and then click on a search result to focus it, it's too easy to click on an invisible button and accidentally dismiss a search result because of issue 1.

@roblourens
Copy link
Member

Trying to decide whether we should just always right align... but it seems weird to me to have the X really far away from the row content in some cases. Anyway, if someone wants to add a setting to configure this, I would take that PR.

@roblourens roblourens added the help wanted Issues identified as good community contribution opportunities label Nov 16, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Issues identified as good community contribution opportunities search Search widget and operation issues under-discussion Issue is under discussion for relevance, priority, approach
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants