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

SCM - Use default cursor for the action button list item #153107

Merged
merged 2 commits into from
Jun 26, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/vs/workbench/contrib/scm/browser/media/scm.css
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@
background: transparent !important;
}

.scm-view .monaco-list .monaco-list-row.force-cursor-default {
cursor: default !important;
lszomoru marked this conversation as resolved.
Show resolved Hide resolved
}

.scm-view.show-actions .scm-provider > .actions,
.scm-view.show-actions > .monaco-list .monaco-list-row .resource-group > .actions,
.scm-view.show-actions > .monaco-list .monaco-list-row .resource > .name > .monaco-icon-label > .actions {
Expand Down
4 changes: 2 additions & 2 deletions src/vs/workbench/contrib/scm/browser/scmViewPane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ class ActionButtonRenderer implements ICompressibleTreeRenderer<ISCMActionButton
// hack
(container.parentElement!.parentElement!.querySelector('.monaco-tl-twistie')! as HTMLElement).classList.add('force-no-twistie');

// Disable hover for list item
container.parentElement!.parentElement!.classList.add('force-no-hover');
// Use default cursor & disable hover for list item
container.parentElement!.parentElement!.classList.add('force-cursor-default', 'force-no-hover');

const buttonContainer = append(container, $('.button-container'));
const actionButton = new SCMActionButton(buttonContainer, this.commandService, this.themeService, this.notificationService);
Expand Down