mirror of
https://github.com/HeyPuter/puter.git
synced 2026-02-05 21:38:41 -06:00
Adjust auth popup size and style for embedded mode
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user