Skip to content

Commit

Permalink
Fixes #201 (popover button not responsive)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnog committed May 19, 2019
1 parent 7bf486d commit 86ce9f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion css/mathlive.core.less
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
.ML__base {
display: inline-block;
position: relative;
cursor: text;
}

.ML__strut, .ML__strut--bottom {
Expand Down Expand Up @@ -172,6 +171,7 @@ body[theme="dark"] .ML__fieldcontainer {
line-height: 0;
padding: 2px;
width: 100%;
cursor: text;
}


Expand Down
6 changes: 3 additions & 3 deletions src/editor/editor-popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ function showPopoverWithLatex(mf, latex, displayArrows) {

let template = displayArrows ?
'<div class="ML__popover__prev-shortcut" role="button" aria-label="Previous suggestion"><span><span>&#x25B2;</span></span></div>' : '';
template += '<span class="ML__popover__content">';
template += '<div class="ML__popover__command" role="button" >' +
template += '<span class="ML__popover__content" role="button">';
template += '<div class="ML__popover__command">' +
command_markup + '</div>';
if (command_note) {
template += '<div class="ML__popover__note">' +
Expand All @@ -410,7 +410,7 @@ function showPopoverWithLatex(mf, latex, displayArrows) {
template += displayArrows ? '<div class="ML__popover__next-shortcut" role="button" aria-label="Next suggestion"><span><span>&#x25BC;</span></span></div>' : '';
showPopover(mf, template);

let el = mf.popover.getElementsByClassName('ML__popover_content');
let el = mf.popover.getElementsByClassName('ML__popover__content');
if (el && el.length > 0) {
mf._attachButtonHandlers(el[0], ['complete', {acceptSuggestion:true}]);
}
Expand Down

0 comments on commit 86ce9f1

Please sign in to comment.