fix prompt width

This commit is contained in:
Araxeus
2021-05-05 03:48:07 +03:00
parent 834f8674a3
commit 6b147b098a
2 changed files with 5 additions and 6 deletions

View File

@ -323,6 +323,7 @@ function setProxy(item, win) {
},
icon: iconPath,
customStylesheet: "dark",
width: 450,
};
//TODO: custom bar on prompt need testing on macOS
if (!is.macOS()) {
@ -330,8 +331,6 @@ function setProxy(item, win) {
frame: false,
customScript: path.join(__dirname, "plugins", "in-app-menu", "prompt-custom-titlebar.js"),
enableRemoteModule: true,
height: 200,
width: 450,
});
}
prompt(options, win)

View File

@ -43,7 +43,8 @@ function promptVolumeSteps(win, options) {
label: "Choose Volume Increase/Decrease Steps",
value: options.steps || 1,
type: "counter",
counterOptions: { minimum: 0, maximum: 100, multiFire: true }
counterOptions: { minimum: 0, maximum: 100, multiFire: true },
width: 380
};
setupPromptOptions(promptOptions);
@ -65,8 +66,7 @@ function promptGlobalShortcuts(win, options, item) {
keybindOptions: [
kb("Increase Volume", "volumeUp", options.globalShortcuts?.volumeUp),
kb("Decrease Volume", "volumeDown", options.globalShortcuts?.volumeDown)
],
height: 230
]
};
setupPromptOptions(promptOptions);