Adjust auth popup size and style for embedded mode

This commit is contained in:
jelveh
2025-12-29 23:12:52 -08:00
parent 773b82638a
commit 98d0c25ce8
2 changed files with 9 additions and 2 deletions

View File

@@ -1274,6 +1274,13 @@ span.header-sort-icon img {
top: 0 !important;
}
.embedded-in-popup .window-login, .embedded-in-popup .window-signup {
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
}
.window-sidebar-title {
margin: 0;
font-weight: bold;

View File

@@ -434,7 +434,7 @@ class PuterDialog extends (globalThis.HTMLElement || Object) { // It will fall b
// Add event listener to the button
this.shadowRoot.querySelector('#launch-auth-popup')?.addEventListener('click', () => {
let w = 600;
let h = 400;
let h = 500;
let title = 'Puter';
var left = (screen.width / 2) - (w / 2);
var top = (screen.height / 2) - (h / 2);
@@ -454,7 +454,7 @@ class PuterDialog extends (globalThis.HTMLElement || Object) { // It will fall b
open () {
if ( this.hasUserActivation() ) {
let w = 600;
let h = 400;
let h = 500;
let title = 'Puter';
var left = (screen.width / 2) - (w / 2);
var top = (screen.height / 2) - (h / 2);