Skip to content

Commit 8605962

Browse files
committed
Fix overflow
1 parent 9db551a commit 8605962

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

src/main.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,10 @@ function addToolbarButton(toolbar) {
207207
});
208208
}
209209

210-
// Add the button at the appropriate position
210+
// Add the button at the end of the toolbar
211211
if (isNewToolbar) {
212-
// For new GitHub style, add before the last button (usually slash commands)
213-
const lastButton = toolbarGroup.lastElementChild;
214-
if (lastButton) {
215-
lastButton.before(button);
216-
} else {
217-
toolbarGroup.append(button);
218-
}
212+
// For new GitHub style, add to the end of the toolbar
213+
toolbar.append(button);
219214
} else {
220215
// For old GitHub style, add at the end
221216
toolbarGroup.append(button);

src/style.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@
6161
overflow: visible !important;
6262
}
6363

64-
[class*="AnchoredReviewBody-"] {
65-
overflow: visible !important;
66-
}
67-
6864
[class*="prc-Overlay-Overlay"] {
6965
overflow: visible !important;
7066
}

0 commit comments

Comments
 (0)