mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-01-01 22:47:19 +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
|
-webkit-user-select: none
|
||||||
cursor: default
|
cursor: default
|
||||||
|
|
||||||
img.background
|
|
||||||
position: absolute
|
|
||||||
|
|
||||||
width: 100%
|
|
||||||
height: 100%
|
|
||||||
|
|
||||||
::-webkit-scrollbar
|
::-webkit-scrollbar
|
||||||
width: 10px
|
width: 10px
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
@import "basic"
|
@import "basic"
|
||||||
|
|
||||||
|
img.background
|
||||||
|
position: absolute
|
||||||
|
|
||||||
|
width: 100%
|
||||||
|
height: 100%
|
||||||
|
|
||||||
#info
|
#info
|
||||||
position: absolute
|
position: absolute
|
||||||
|
|
||||||
|
|
|
@ -174,6 +174,7 @@
|
||||||
// Do some stuff when all the content will be loaded
|
// Do some stuff when all the content will be loaded
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
Window.current.show();
|
Window.current.show();
|
||||||
|
Window.current.setSize({ width: 900, height: 600 });
|
||||||
Window.current.center(900, 600);
|
Window.current.center(900, 600);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
Window.current.show();
|
Window.current.show();
|
||||||
|
Window.current.setSize({ width: 300, height: 400 });
|
||||||
Window.current.center(300, 400);
|
Window.current.center(300, 400);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,8 @@ export default class State
|
||||||
IPC.write('launcher-loaded');
|
IPC.write('launcher-loaded');
|
||||||
|
|
||||||
Window.current.show();
|
Window.current.show();
|
||||||
|
Window.current.setSize({ width: 1280, height: 700 });
|
||||||
|
Window.current.center(1280, 700);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue