Skip to content

Commit 1b08a89

Browse files
authored
SCM - Use default cursor for the action button list item (microsoft#153107)
* Use default cursor for the action button list item * Remove !important
1 parent bc403a0 commit 1b08a89

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/vs/workbench/contrib/scm/browser/media/scm.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@
173173
background: transparent !important;
174174
}
175175

176+
.scm-view .monaco-list .monaco-list-row.cursor-default {
177+
cursor: default;
178+
}
179+
176180
.scm-view.show-actions .scm-provider > .actions,
177181
.scm-view.show-actions > .monaco-list .monaco-list-row .resource-group > .actions,
178182
.scm-view.show-actions > .monaco-list .monaco-list-row .resource > .name > .monaco-icon-label > .actions {

src/vs/workbench/contrib/scm/browser/scmViewPane.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ class ActionButtonRenderer implements ICompressibleTreeRenderer<ISCMActionButton
119119
// hack
120120
(container.parentElement!.parentElement!.querySelector('.monaco-tl-twistie')! as HTMLElement).classList.add('force-no-twistie');
121121

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

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

0 commit comments

Comments
 (0)