Keep item suggestions on screen and stop the page sliding sideways on phones

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rickyandClaude Opus 5.5 committed 2026-11-03 20:25:34 -05:00
1 parent 3725f27d05
commit 6f459c7016
2 files changed
+22 -1

No files matched your search

+4
View File
@@ -10,6 +10,10 @@
let ac = $(this).autocomplete({
appendTo: "body",
minLength: 2,
// Kept on screen: on a phone a wide list of suggestions widened the page, which could leave the page
// stuck scrolled to the side
classes: { "ui-autocomplete": "line-item-suggestions" },
position: { my: "left top", at: "left bottom", collision: "flipfit" },
source: function(request, response) {
$.getJSON("/items/autocomplete", { q: request.term })