Auto-fix formatting issues

This commit is contained in:
GitHub Action
2025-11-21 02:54:28 +00:00
parent f7a24bb26f
commit aec5e2718a
2 changed files with 13 additions and 14 deletions

15
bin/cli.ts vendored
View File

@@ -188,10 +188,7 @@ program
.hideHelp(),
)
.addOption(
new Option(
'--zoom <number>',
'Initial page zoom level (50-200)',
)
new Option('--zoom <number>', 'Initial page zoom level (50-200)')
.default(DEFAULT.zoom)
.argParser((value) => {
const zoom = parseInt(value);
@@ -203,19 +200,13 @@ program
.hideHelp(),
)
.addOption(
new Option(
'--min-width <number>',
'Minimum window width',
)
new Option('--min-width <number>', 'Minimum window width')
.default(DEFAULT.minWidth)
.argParser(validateNumberInput)
.hideHelp(),
)
.addOption(
new Option(
'--min-height <number>',
'Minimum window height',
)
new Option('--min-height <number>', 'Minimum window height')
.default(DEFAULT.minHeight)
.argParser(validateNumberInput)
.hideHelp(),

View File

@@ -65,8 +65,16 @@ pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) ->
.incognito(window_config.incognito);
if window_config.min_width > 0.0 || window_config.min_height > 0.0 {
let min_w = if window_config.min_width > 0.0 { window_config.min_width } else { window_config.width };
let min_h = if window_config.min_height > 0.0 { window_config.min_height } else { window_config.height };
let min_w = if window_config.min_width > 0.0 {
window_config.min_width
} else {
window_config.width
};
let min_h = if window_config.min_height > 0.0 {
window_config.min_height
} else {
window_config.height
};
window_builder = window_builder.min_inner_size(min_w, min_h);
}