style(widget): increase widget size to 300x600 and avatar height to 360px

This commit is contained in:
Michael committed 2026-05-21 20:40:22 +02:00
1 parent 33cd8156f9
commit 17d00b085b
3 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -308,17 +308,17 @@ ipcMain.on('window-control', (event, action) => {
ipcMain.on('set-window-mode', (event, mode) => {
if (!mainWindow) return;
if (mode === 'floating') {
// Mode flottant compact : 300x550
// Mode flottant compact : 300x600
mainWindow.setResizable(true);
mainWindow.setMinimumSize(250, 350);
mainWindow.setSize(300, 550);
mainWindow.setSize(300, 600);
mainWindow.setAlwaysOnTop(true, 'screen-saver');
// Positionner dans le coin inférieur droit de l'écran principal
const { screen } = require('electron');
const primaryDisplay = screen.getPrimaryDisplay();
const { width, height } = primaryDisplay.workAreaSize;
mainWindow.setPosition(width - 320, height - 570);
mainWindow.setPosition(width - 320, height - 620);
event.reply('window-mode-changed', 'floating');
} else {