/popup: add scroll argument, allow scroll by default

b5cdb29bf3776fbc4c9c956b3e96076dbd4afae0

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +8 -0Ignore whitespace
public/scripts/slash-commands.js+8 -0
@@ -1396,6 +1396,13 @@ export function initDefaultSlashCommands() {
13961396 returns: 'popup text',
13971397 namedArgumentList: [
13981398 SlashCommandNamedArgument.fromProps({
1399+ name: 'scroll',
1400+ description: 'allows vertical scrolling of the content',
1401+ typeList: [ARGUMENT_TYPE.BOOLEAN],
1402+ enumList: commonEnumProviders.boolean('trueFalse')(),
1403+ defaultValue: 'true',
1404+ }),
1405+ SlashCommandNamedArgument.fromProps({
13991406 name: 'large',
14001407 description: 'show large popup',
14011408 typeList: [ARGUMENT_TYPE.BOOLEAN],
@@ -2108,6 +2115,7 @@ async function popupCallback(args, value) {
21082115
21092116 /** @type {import('./popup.js').PopupOptions} */
21102117 const popupOptions = {
2118+ allowVerticalScrolling: !isFalseBoolean(args?.scroll),
21112119 large: isTrueBoolean(args?.large),
21122120 wide: isTrueBoolean(args?.wide),
21132121 wider: isTrueBoolean(args?.wider),