mirror of
https://github.com/R0m1k3/EveFlow.git
synced 2026-10-11 17:29:03 +02:00
style(widget): enlarge avatar canvas height to 220px and floating window to 300x460
This commit is contained in:
1 parent
125322ae07
commit
f4cfd6a12d
4 files changed
+4
-4
No files matched your search
@@ -309,14 +309,14 @@ ipcMain.on('set-window-mode', (event, mode) => {
|
||||
// Mode flottant compact : 320x450
|
||||
mainWindow.setResizable(true);
|
||||
mainWindow.setMinimumSize(250, 350);
|
||||
mainWindow.setSize(300, 400);
|
||||
mainWindow.setSize(300, 460);
|
||||
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 - 420);
|
||||
mainWindow.setPosition(width - 320, height - 480);
|
||||
|
||||
event.reply('window-mode-changed', 'floating');
|
||||
} else {
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 37 KiB |
+1
-1
@@ -2235,7 +2235,7 @@ export const App: React.FC = () => {
|
||||
)}
|
||||
|
||||
{/* Rendu Canvas 3D */}
|
||||
<div style={{ flex: isFloatingMode ? 'none' : 1, height: isFloatingMode ? '165px' : 'auto', width: '100%', position: 'relative', display: 'flex', alignItems: 'center', justifyContent: 'center', marginTop: isFloatingMode ? '34px' : '0' }}>
|
||||
<div style={{ flex: isFloatingMode ? 'none' : 1, height: isFloatingMode ? '220px' : 'auto', width: '100%', position: 'relative', display: 'flex', alignItems: 'center', justifyContent: 'center', marginTop: isFloatingMode ? '34px' : '0' }}>
|
||||
<ThreeCanvas
|
||||
emotion={currentEmotion}
|
||||
isSpeaking={isSpeaking}
|
||||
|
||||
+1
-1
@@ -2769,7 +2769,7 @@ select.glow-input {
|
||||
}
|
||||
|
||||
.eve-section.floating-widget > div[style*="position: relative"] {
|
||||
height: 165px !important;
|
||||
height: 220px !important;
|
||||
flex: none !important;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user