mirror of
https://github.com/anatolykopyl/vk-mute.git
synced 2026-03-26 12:55:13 +00:00
Merge branch 'Refactoring_and_fixing' into add_build_process
This commit is contained in:
11
src/dom/controls.js
vendored
11
src/dom/controls.js
vendored
@@ -21,12 +21,11 @@ function muteBtnHTML(id) {
|
|||||||
* @param chatBody {HTMLElement}
|
* @param chatBody {HTMLElement}
|
||||||
* @return {function(...[*]=)}
|
* @return {function(...[*]=)}
|
||||||
*/
|
*/
|
||||||
export function addControls(chatBody) {
|
function addControls(event) {
|
||||||
return function (event) {
|
console.log(event);
|
||||||
if (event.target.className === 'im-mess--check fl_l') {
|
if (event.target.className === 'im-mess--check fl_l') {
|
||||||
const message = event.target.parentElement;
|
const message = event.target.parentElement;
|
||||||
addControlButton(message, chatBody)
|
addControlButton(message)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -47,3 +47,7 @@
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.im-mess--actions {
|
||||||
|
margin-right: -30px !important;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user