Skip to content

Commit 0098a0d

Browse files
committed
Fix GitLab repo selector
1 parent e88e4ec commit 0098a0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/button/button-contributions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export const buttonContributions: ButtonContributionParams[] = [
191191
],
192192
// must not match /blob/ because that is a file
193193
match: /^(?!.*\/blob\/).*$/,
194-
selector: "#tree-holder > div > div.tree-controls > div:first-child",
194+
selector: "#tree-holder > section > div > div.tree-controls",
195195
containerElement: { type: "div", props: { marginLeft: "8px" } },
196196
application: "gitlab",
197197
manipulations: [

test/src/button-contributions-copy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export const buttonContributions: ButtonContributionParams[] = [
191191
],
192192
// must not match /blob/ because that is a file
193193
match: /^(?!.*\/blob\/).*$/,
194-
selector: "#tree-holder > div > div.tree-controls > div:first-child",
194+
selector: "#tree-holder > section > div > div.tree-controls",
195195
containerElement: { type: "div", props: { marginLeft: "8px" } },
196196
application: "gitlab",
197197
manipulations: [

0 commit comments

Comments
 (0)