Skip to content

Commit

Permalink
Fix: Ensures highlight buttons are hidden on mobile devices (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodsum authored Jun 30, 2017
1 parent 3c46e05 commit ef8db6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/annotations/doc/DocHighlightDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const PAGE_PADDING_TOP = 15;

/**
* Emit the message to create a highlight and render it.
*
*
* @public
* @return {void}
*/
Expand Down Expand Up @@ -471,7 +471,7 @@ const PAGE_PADDING_TOP = 15;
const highlightDialogEl = document.createElement('div');
highlightDialogEl.innerHTML = `
<span class="bp-annotation-highlight-label ${CLASS_HIDDEN}"></span>
<span class="bp-annotations-highlight-btns">
<span class="bp-annotations-highlight-btns ${this.isMobile ? CLASS_HIDDEN : ''}">
<button class="bp-btn-plain bp-add-highlight-btn"
data-type="highlight-btn"
title="${__('annotation_highlight_toggle')}">
Expand Down

0 comments on commit ef8db6e

Please sign in to comment.