mirror of
https://github.com/R0m1k3/EveFlow.git
synced 2026-10-24 15:48:13 +02:00
style(widget): increase widget size to 300x600 and avatar height to 360px
This commit is contained in:
1 parent
33cd8156f9
commit
17d00b085b
3 files changed
+5
-5
No files matched your search
@@ -308,17 +308,17 @@ ipcMain.on('window-control', (event, action) => {
|
|||||||
ipcMain.on('set-window-mode', (event, mode) => {
|
ipcMain.on('set-window-mode', (event, mode) => {
|
||||||
if (!mainWindow) return;
|
if (!mainWindow) return;
|
||||||
if (mode === 'floating') {
|
if (mode === 'floating') {
|
||||||
// Mode flottant compact : 300x550
|
// Mode flottant compact : 300x600
|
||||||
mainWindow.setResizable(true);
|
mainWindow.setResizable(true);
|
||||||
mainWindow.setMinimumSize(250, 350);
|
mainWindow.setMinimumSize(250, 350);
|
||||||
mainWindow.setSize(300, 550);
|
mainWindow.setSize(300, 600);
|
||||||
mainWindow.setAlwaysOnTop(true, 'screen-saver');
|
mainWindow.setAlwaysOnTop(true, 'screen-saver');
|
||||||
|
|
||||||
// Positionner dans le coin inférieur droit de l'écran principal
|
// Positionner dans le coin inférieur droit de l'écran principal
|
||||||
const { screen } = require('electron');
|
const { screen } = require('electron');
|
||||||
const primaryDisplay = screen.getPrimaryDisplay();
|
const primaryDisplay = screen.getPrimaryDisplay();
|
||||||
const { width, height } = primaryDisplay.workAreaSize;
|
const { width, height } = primaryDisplay.workAreaSize;
|
||||||
mainWindow.setPosition(width - 320, height - 570);
|
mainWindow.setPosition(width - 320, height - 620);
|
||||||
|
|
||||||
event.reply('window-mode-changed', 'floating');
|
event.reply('window-mode-changed', 'floating');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
+1
-1
@@ -2235,7 +2235,7 @@ export const App: React.FC = () => {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Rendu Canvas 3D */}
|
{/* Rendu Canvas 3D */}
|
||||||
<div style={{ flex: isFloatingMode ? 'none' : 1, height: isFloatingMode ? '300px' : 'auto', width: '100%', position: 'relative', display: 'flex', alignItems: 'center', justifyContent: 'center', marginTop: isFloatingMode ? '34px' : '0' }}>
|
<div style={{ flex: isFloatingMode ? 'none' : 1, height: isFloatingMode ? '360px' : 'auto', width: '100%', position: 'relative', display: 'flex', alignItems: 'center', justifyContent: 'center', marginTop: isFloatingMode ? '34px' : '0' }}>
|
||||||
<ThreeCanvas
|
<ThreeCanvas
|
||||||
emotion={currentEmotion}
|
emotion={currentEmotion}
|
||||||
isSpeaking={isSpeaking}
|
isSpeaking={isSpeaking}
|
||||||
|
|||||||
+1
-1
@@ -2769,7 +2769,7 @@ select.glow-input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.eve-section.floating-widget > div[style*="position: relative"] {
|
.eve-section.floating-widget > div[style*="position: relative"] {
|
||||||
height: 300px !important;
|
height: 360px !important;
|
||||||
flex: none !important;
|
flex: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user