From f2093e9204f19df5d5f28241e1e07d6f5ffb1518 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Sat, 16 May 2026 16:36:53 -0700 Subject: [PATCH] PuterDialog: UI/style tweaks and button reorder --- src/puter-js/src/modules/PuterDialog.js | 26 +++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/puter-js/src/modules/PuterDialog.js b/src/puter-js/src/modules/PuterDialog.js index b8e42b5ec..0b0d5eb98 100644 --- a/src/puter-js/src/modules/PuterDialog.js +++ b/src/puter-js/src/modules/PuterDialog.js @@ -103,8 +103,9 @@ class PuterDialog extends (globalThis.HTMLElement || Object) { // It will fall b padding: 10px 30px; font-weight: 400; -webkit-font-smoothing: antialiased; - color: #404048; + color: #1f1f2a; box-sizing: border-box; + max-width: 400px; } dialog .buttons{ @@ -115,6 +116,7 @@ class PuterDialog extends (globalThis.HTMLElement || Object) { // It will fall b margin-top: 20px; text-align: center; margin-bottom: 20px; + flex-direction: column; } .launch-auth-popup-footnote{ @@ -125,7 +127,7 @@ class PuterDialog extends (globalThis.HTMLElement || Object) { // It will fall b position: absolute; left: 0; right: 0; - bottom: 10px; + bottom: 20px; text-align: center; margin: 0 10px; } @@ -135,7 +137,7 @@ class PuterDialog extends (globalThis.HTMLElement || Object) { // It will fall b right: 15px; top: 10px; font-size: 17px; - color: #8a8a8a; + color: #8a8a8a8c; cursor: pointer; } @@ -171,8 +173,6 @@ class PuterDialog extends (globalThis.HTMLElement || Object) { // It will fall b line-height: 35px; background: -webkit-gradient(linear, left top, left bottom, from(#f6f6f6), to(#e1e1e1)); background: linear-gradient(#f6f6f6, #e1e1e1); - -webkit-box-shadow: inset 0px 1px 0px rgb(255 255 255 / 30%), 0 1px 2px rgb(0 0 0 / 15%); - box-shadow: inset 0px 1px 0px rgb(255 255 255 / 30%), 0 1px 2px rgb(0 0 0 / 15%); border-radius: 4px; outline: none; -webkit-font-smoothing: antialiased; @@ -297,7 +297,6 @@ class PuterDialog extends (globalThis.HTMLElement || Object) { // It will fall b } #launch-auth-popup{ - margin-left: 10px; width: 200px; font-weight: 500; font-size: 15px; @@ -305,8 +304,12 @@ class PuterDialog extends (globalThis.HTMLElement || Object) { // It will fall b dialog .button-auth{ margin-bottom: 10px; } + dialog .button-auth-cancel{ + background: none !important; + width:200px; + } dialog a, dialog a:visited{ - color: rgb(0 69 238); + color: rgb(0 0 0); text-decoration: none; } dialog a:hover{ @@ -440,14 +443,13 @@ class PuterDialog extends (globalThis.HTMLElement || Object) { // It will fall b h += `
- +

This website uses Puter to bring you safe, secure, and private AI and Cloud features.

- - + +
-

Powered by Puter

-

By clicking 'Continue' you agree to Puter's Terms of Service and Privacy Policy.

+

By clicking 'Continue' you agree to Puter's Terms of Service and Privacy Policy

`; }