Don't try to orient these

We need to figure out how to handle the assignment popup when it's close
to the bottom of the screen but this isn't doing it
This commit is contained in:
Jason Zimdars
2025-10-30 17:11:22 -05:00
parent e83816d69c
commit 8c4d3fd700
2 changed files with 1 additions and 14 deletions
@@ -4,8 +4,7 @@ export function orient(el, orient = true) {
const directions = [
["orient-left", spaceOnRight],
["orient-right", spaceOnLeft],
["orient-top", spaceOnBottom],
["orient-bottom", spaceOnTop]
["orient-top", spaceOnBottom]
];
directions.forEach(([className, fn]) =>
@@ -24,7 +23,3 @@ function spaceOnRight(el) {
function spaceOnBottom(el) {
return window.innerHeight - el.getBoundingClientRect().bottom
}
function spaceOnTop(el) {
return el.getBoundingClientRect().top
}