From e03f1b14e6927340861fa258c30f01d867a26127 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 23 Oct 2024 23:00:08 +0300 Subject: [PATCH] Enable vertical scrolling in /buttons Closes #3012 --- public/scripts/slash-commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index a34b4e544..c39fbdf13 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -2091,7 +2091,7 @@ async function buttonsCallback(args, text) { popupContainer.innerHTML = safeValue; popupContainer.appendChild(buttonContainer); - popup = new Popup(popupContainer, POPUP_TYPE.TEXT, '', { okButton: 'Cancel' }); + popup = new Popup(popupContainer, POPUP_TYPE.TEXT, '', { okButton: 'Cancel', allowVerticalScrolling: true }); popup.show() .then((result => resolve(typeof result === 'number' ? resultToButtonMap.get(result) ?? '' : ''))) .catch(() => resolve(''));