mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-29 21:18:17 +03:00
Fixed windows sizing on wayland
This commit is contained in:
parent
d5b581007a
commit
8ec4765a5b
5 changed files with 10 additions and 6 deletions
|
@ -8,12 +8,6 @@ body
|
|||
-webkit-user-select: none
|
||||
cursor: default
|
||||
|
||||
img.background
|
||||
position: absolute
|
||||
|
||||
width: 100%
|
||||
height: 100%
|
||||
|
||||
::-webkit-scrollbar
|
||||
width: 10px
|
||||
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
@import "basic"
|
||||
|
||||
img.background
|
||||
position: absolute
|
||||
|
||||
width: 100%
|
||||
height: 100%
|
||||
|
||||
#info
|
||||
position: absolute
|
||||
|
||||
|
|
|
@ -174,6 +174,7 @@
|
|||
// Do some stuff when all the content will be loaded
|
||||
onMount(() => {
|
||||
Window.current.show();
|
||||
Window.current.setSize({ width: 900, height: 600 });
|
||||
Window.current.center(900, 600);
|
||||
});
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
onMount(() => {
|
||||
Window.current.show();
|
||||
Window.current.setSize({ width: 300, height: 400 });
|
||||
Window.current.center(300, 400);
|
||||
});
|
||||
|
||||
|
|
|
@ -87,6 +87,8 @@ export default class State
|
|||
IPC.write('launcher-loaded');
|
||||
|
||||
Window.current.show();
|
||||
Window.current.setSize({ width: 1280, height: 700 });
|
||||
Window.current.center(1280, 700);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue