Skip to content

Commit

Permalink
fix(intercom): Add horizontal padding to button
Browse files Browse the repository at this point in the history
  • Loading branch information
shantanuraj committed Jul 30, 2019
1 parent e634a31 commit 7830a1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scripts/content/intercom.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ togglbutton.render('.conversation__card__content-expanded__controls .inbox__conv
return description ? description.textContent.trim().replace(/ +/g, ' ') : '';
};

/**
* @type {HTMLElement}
*/
const link = togglbutton.createTimerLink({
className: 'intercom',
description: descriptionSelector
});
link.style.paddingRight = '15px';

// Stop button being re-rendered while trying to click. Intercom has some kind of handlers doing things.
link.addEventListener('mousedown', (e) => {
Expand Down

0 comments on commit 7830a1d

Please sign in to comment.