File tree 4 files changed +19
-12
lines changed
app/[variants]/(main)/_layout/Desktop/SideBar
4 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 11
11
"build:mac" : " npm run build && electron-builder --mac" ,
12
12
"build:unpack" : " npm run build && electron-builder --dir" ,
13
13
"build:win" : " npm run build && electron-builder --win" ,
14
- "dev" : " electron-vite dev" ,
14
+ "electron: dev" : " electron-vite dev" ,
15
15
"electron:run" : " electron ." ,
16
16
"format" : " prettier --write " ,
17
17
"postinstall" : " electron-builder install-app-deps" ,
26
26
"next-electron-rsc" : " ^0.2.3"
27
27
},
28
28
"devDependencies" : {
29
- "@electron-toolkit/preload" : " ^3.0.1" ,
30
29
"@electron-toolkit/eslint-config-prettier" : " ^3.0.0" ,
31
30
"@electron-toolkit/eslint-config-ts" : " ^3.0.0" ,
31
+ "@electron-toolkit/preload" : " ^3.0.1" ,
32
32
"@electron-toolkit/tsconfig" : " ^1.0.1" ,
33
33
"electron" : " ^34.2.0" ,
34
34
"electron-builder" : " ^25.1.8" ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ let mainWindow;
10
10
let stopIntercept ;
11
11
12
12
// Next.js handler
13
- const standaloneDir = path . join ( appPath , 'out' , 'standalone' ) ;
13
+ const standaloneDir = path . join ( appPath , 'out' , 'standalone' ) ;
14
14
const { createInterceptor } = createHandler ( {
15
15
debug : true ,
16
16
localhostUrl,
@@ -23,6 +23,7 @@ const createWindow = async () => {
23
23
mainWindow = new BrowserWindow ( {
24
24
autoHideMenuBar : true ,
25
25
height : 800 ,
26
+ titleBarStyle : 'hidden' ,
26
27
webPreferences : {
27
28
contextIsolation : true , // protect against prototype pollution
28
29
preload : join ( __dirname , '../preload/index.js' ) ,
@@ -59,8 +60,6 @@ app.on('ready', createWindow);
59
60
60
61
app . on ( 'window-all-closed' , ( ) => app . quit ( ) ) ;
61
62
62
- // if (process.platform !== 'darwin')
63
-
64
63
app . on (
65
64
'activate' ,
66
65
( ) => BrowserWindow . getAllWindows ( ) . length === 0 && ! mainWindow && createWindow ( ) ,
Original file line number Diff line number Diff line change @@ -31,7 +31,11 @@ const Nav = memo(() => {
31
31
< SideNav
32
32
avatar = { < Avatar /> }
33
33
bottomActions = { < BottomActions /> }
34
- style = { { height : '100%' , paddingTop : isDesktop ? 24 : undefined , zIndex : 100 } }
34
+ style = { {
35
+ height : '100%' ,
36
+ zIndex : 100 ,
37
+ ...( isDesktop ? { background : 'transparent' , paddingTop : 24 } : { } ) ,
38
+ } }
35
39
topActions = {
36
40
< Suspense >
37
41
< Top />
Original file line number Diff line number Diff line change @@ -4,16 +4,20 @@ import { Popover } from 'antd';
4
4
import { createStyles } from 'antd-style' ;
5
5
import { PropsWithChildren , memo , useState } from 'react' ;
6
6
7
+ import { isDesktop } from '@/const/version' ;
8
+
7
9
import PanelContent from './PanelContent' ;
8
10
import UpgradeBadge from './UpgradeBadge' ;
9
11
import { useNewVersion } from './useNewVersion' ;
10
12
11
- const useStyles = createStyles ( ( { css } ) => ( {
12
- popover : css `
13
- inset-block-start : 8px !important ;
14
- inset-inline-start : 8px !important ;
15
- ` ,
16
- } ) ) ;
13
+ const useStyles = createStyles ( ( { css } ) => {
14
+ return {
15
+ popover : css `
16
+ inset-block-start : ${ isDesktop ? 24 : 8 } px !important ;
17
+ inset-inline-start : 8px !important ;
18
+ ` ,
19
+ } ;
20
+ } ) ;
17
21
18
22
const UserPanel = memo < PropsWithChildren > ( ( { children } ) => {
19
23
const hasNewVersion = useNewVersion ( ) ;
You can’t perform that action at this time.
0 commit comments