mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
fix prompt width
This commit is contained in:
5
menu.js
5
menu.js
@ -323,15 +323,14 @@ function setProxy(item, win) {
|
|||||||
},
|
},
|
||||||
icon: iconPath,
|
icon: iconPath,
|
||||||
customStylesheet: "dark",
|
customStylesheet: "dark",
|
||||||
|
width: 450,
|
||||||
};
|
};
|
||||||
//TODO: custom bar on prompt need testing on macOS
|
//TODO: custom bar on prompt need testing on macOS
|
||||||
if (!is.macOS()) {
|
if (!is.macOS()) {
|
||||||
Object.assign(options, {
|
Object.assign(options, {
|
||||||
frame: false,
|
frame: false,
|
||||||
customScript: path.join(__dirname, "plugins", "in-app-menu", "prompt-custom-titlebar.js"),
|
customScript: path.join(__dirname, "plugins", "in-app-menu", "prompt-custom-titlebar.js"),
|
||||||
enableRemoteModule: true,
|
enableRemoteModule: true,
|
||||||
height: 200,
|
|
||||||
width: 450,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
prompt(options, win)
|
prompt(options, win)
|
||||||
|
|||||||
@ -43,7 +43,8 @@ function promptVolumeSteps(win, options) {
|
|||||||
label: "Choose Volume Increase/Decrease Steps",
|
label: "Choose Volume Increase/Decrease Steps",
|
||||||
value: options.steps || 1,
|
value: options.steps || 1,
|
||||||
type: "counter",
|
type: "counter",
|
||||||
counterOptions: { minimum: 0, maximum: 100, multiFire: true }
|
counterOptions: { minimum: 0, maximum: 100, multiFire: true },
|
||||||
|
width: 380
|
||||||
};
|
};
|
||||||
|
|
||||||
setupPromptOptions(promptOptions);
|
setupPromptOptions(promptOptions);
|
||||||
@ -65,8 +66,7 @@ function promptGlobalShortcuts(win, options, item) {
|
|||||||
keybindOptions: [
|
keybindOptions: [
|
||||||
kb("Increase Volume", "volumeUp", options.globalShortcuts?.volumeUp),
|
kb("Increase Volume", "volumeUp", options.globalShortcuts?.volumeUp),
|
||||||
kb("Decrease Volume", "volumeDown", options.globalShortcuts?.volumeDown)
|
kb("Decrease Volume", "volumeDown", options.globalShortcuts?.volumeDown)
|
||||||
],
|
]
|
||||||
height: 230
|
|
||||||
};
|
};
|
||||||
|
|
||||||
setupPromptOptions(promptOptions);
|
setupPromptOptions(promptOptions);
|
||||||
|
|||||||
Reference in New Issue
Block a user