Smaller ui adjustments
This commit is contained in:
@@ -131,8 +131,8 @@ else
|
|||||||
$"&redirect_uri={authStartData.RedirectUri}" +
|
$"&redirect_uri={authStartData.RedirectUri}" +
|
||||||
$"&response_type=code";
|
$"&response_type=code";
|
||||||
|
|
||||||
Navigation.NavigateTo(uri, true);
|
//Navigation.NavigateTo(uri, true);
|
||||||
return;
|
//return;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -140,7 +140,7 @@ else
|
|||||||
uri,
|
uri,
|
||||||
"OAuth2 Flow",
|
"OAuth2 Flow",
|
||||||
600,
|
600,
|
||||||
450
|
470
|
||||||
);
|
);
|
||||||
|
|
||||||
IsAuthenticating = true;
|
IsAuthenticating = true;
|
||||||
|
|||||||
@@ -11,17 +11,12 @@
|
|||||||
<StatCard Title="Host OS" Text="Debian 12" Icon="bi bi-motherboard"/>
|
<StatCard Title="Host OS" Text="Debian 12" Icon="bi bi-motherboard"/>
|
||||||
<StatCard Title="Uptime" Text="1d 5h 12h 3s" Icon="bi bi-clock-history"/>
|
<StatCard Title="Uptime" Text="1d 5h 12h 3s" Icon="bi bi-clock-history"/>
|
||||||
|
|
||||||
<div class="card card-body relative">
|
<div class="card card-body">
|
||||||
<div>
|
<div class="flex justify-center">
|
||||||
<div class="absolute rounded-lg p-3 bg-danger-600">
|
<WButton OnClick="Restart" CssClasses="btn btn-danger w-full">
|
||||||
<div class="h-6 w-6 flex justify-center items-center">
|
<i class="bi bi-arrow-repeat text-xl text-white me-2"></i>
|
||||||
<i class="bi bi-arrow-repeat text-4xl text-white"></i>
|
Restart
|
||||||
</div>
|
</WButton>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="ml-16 flex items-center mb-2">
|
|
||||||
<WButton OnClick="Restart" CssClasses="btn btn-danger w-full">Restart</WButton>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,11 +1,24 @@
|
|||||||
window.moonlight = {
|
window.moonlight = {
|
||||||
window: {
|
window: {
|
||||||
open: function (url, title, w, h) {
|
open: function (url, title, h, w) {
|
||||||
let height = w;
|
const dualScreenLeft = window.screenLeft !== undefined ? window.screenLeft : window.screenX;
|
||||||
let width = h;
|
const dualScreenTop = window.screenTop !== undefined ? window.screenTop : window.screenY;
|
||||||
var left = (screen.width - width) / 2;
|
|
||||||
var top = (screen.height - height) / 2;
|
const width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;
|
||||||
var newWindow = window.open(url, title, 'resizable = yes, width=' + width + ', height=' + height + ', top=' + top + ', left=' + left);
|
const height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;
|
||||||
|
|
||||||
|
const systemZoom = width / window.screen.availWidth;
|
||||||
|
const left = (width - w) / 2 / systemZoom + dualScreenLeft
|
||||||
|
const top = (height - h) / 2 / systemZoom + dualScreenTop
|
||||||
|
const newWindow = window.open(url, title,
|
||||||
|
`
|
||||||
|
scrollbars=yes,
|
||||||
|
width=${w / systemZoom},
|
||||||
|
height=${h / systemZoom},
|
||||||
|
top=${top},
|
||||||
|
left=${left}
|
||||||
|
`
|
||||||
|
)
|
||||||
|
|
||||||
if (window.focus) newWindow.focus();
|
if (window.focus) newWindow.focus();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user