Skip to content

Commit abd28d8

Browse files
committed
Improve captcha modal styling and messaging
1 parent a058912 commit abd28d8

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

src/gui/src/css/style.css

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2653,6 +2653,17 @@ label {
26532653
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
26542654
}
26552655

2656+
.embedded-in-popup .captcha-modal {
2657+
max-width: 100%;
2658+
width: 100%;
2659+
height: 100%;
2660+
border-radius: 0;
2661+
box-shadow: none;
2662+
border: none;
2663+
padding: 0;
2664+
margin: 0;
2665+
}
2666+
26562667
.captcha-modal .modal-content {
26572668
background-color: white;
26582669
padding: 30px;
@@ -2671,12 +2682,13 @@ label {
26712682
border-radius: 0;
26722683
box-shadow: none;
26732684
border: none;
2685+
padding: 0;
26742686
margin: 0;
2675-
position: fixed;
2676-
top: 0;
2677-
left: 0;
2678-
right: 0;
2679-
bottom: 0;
2687+
position: absolute;
2688+
display: flex;
2689+
flex-direction: column;
2690+
align-items: center;
2691+
justify-content: center;
26802692
}
26812693

26822694
.captcha-modal .captcha-logo {

src/gui/src/initgui.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ window.showTurnstileChallenge = function (options) {
172172
return resolve();
173173
}
174174

175+
// message
176+
let message = 'Setting up your account...';
177+
if ( window.embedded_in_popup ) {
178+
message = 'Setting up your <a href="https://puter.com" target="_blank">Puter.com</a> account for secure AI and Cloud features...';
179+
}
175180
// Create modal HTML
176181
let modalHtml = `
177182
<div id="${modalId}" class="captcha-modal">
@@ -187,7 +192,7 @@ window.showTurnstileChallenge = function (options) {
187192
188193
<div class="loading-state">
189194
<div class="loading-state-icon"></div>
190-
Setting up your account...
195+
${message}
191196
</div>
192197
193198
<div class="error-message"></div>

0 commit comments

Comments
 (0)