Skip to content

Commit

Permalink
editComment: make dialog delete button smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
shu8 committed Feb 2, 2019
1 parent 6a70bb8 commit 0e79f81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions sox.css
Original file line number Diff line number Diff line change
Expand Up @@ -541,12 +541,13 @@
}

.sox-editComment-deleteDialogButton {
margin-left: 5px;
padding: 5px;
min-height: 2.2em;
min-height: 2.2em !important;
background-color: #dc3545 !important;
border-color: #dc3545 !important;
box-shadow: none !important;
padding: 5px !important;
font-size: 12px;
margin-left: 10px;
}

.sox-editComment-reason {
Expand Down
4 changes: 2 additions & 2 deletions sox.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @namespace https://github.com/soscripted/sox
// @homepage https://github.com/soscripted/sox
// @homepageURL https://github.com/soscripted/sox
// @version 2.3.28 DEV
// @version 2.3.29 DEV
// @description Extra optional features for Stack Overflow and Stack Exchange sites
// @contributor ᴉʞuǝ (https://stackoverflow.com/users/1454538/, https://github.com/mezmi)
// @contributor ᔕᖺᘎᕊ (https://stackexchange.com/users/4337810/, https://github.com/shu8)
Expand Down Expand Up @@ -175,7 +175,7 @@
}

//custom events....
sox.helpers.observe('.new_comment', () => { //custom event that triggers when a new comment appears/show more comments clicked; avoids lots of the same mutationobserver
sox.helpers.observe('.new_comment, .comment', () => { //custom event that triggers when a new comment appears/show more comments clicked; avoids lots of the same mutationobserver
$(document).trigger('sox-new-comment');
sox.debug('sox-new-comment event triggered');
});
Expand Down

0 comments on commit 0e79f81

Please sign in to comment.