Skip to content

Commit

Permalink
fix(popover-up): close for different screen sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaraa committed Jul 1, 2024
1 parent 250d3e7 commit b71b5d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/static/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function menuer() {
e.clientX < rect.left ||
e.clientX > rect.right ||
e.clientY + parentRect.height + 5 < rect.top ||
e.clientY > rect.bottom
e.clientY > rect.bottom + parentRect.height + 5
) {
lastEl.style.display = "none";
lastEl = null;
Expand Down
1 change: 1 addition & 0 deletions app/views/components/menus/popover_up.templ
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ css top(topVal string) {

script toggleTheThingUp(id string) {
id = `popover-${id}`;
Utils.registerPopover(id);
const popover = document.getElementById(id);
if (popover.style.display !== "block") {
popover.style.display = "block";
Expand Down

0 comments on commit b71b5d4

Please sign in to comment.