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