style: captcha refresh button
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled

This commit is contained in:
KernelDeimos
2025-04-08 16:54:25 -04:00
parent d0e06e83c0
commit c8d52b3203
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -110,7 +110,7 @@ function CaptchaView(options = {}) {
// Captcha image and refresh button container
const imageContainer = document.createElement('div');
imageContainer.style.display = 'flex';
imageContainer.style.alignItems = 'center';
imageContainer.style.alignItems = 'stretch';
imageContainer.style.justifyContent = 'space-between';
imageContainer.style.gap = '10px';
imageContainer.style.border = '1px solid #ced7e1';
@@ -142,10 +142,12 @@ function CaptchaView(options = {}) {
// Refresh button
const refreshButton = document.createElement('button');
refreshButton.classList.add('button', 'button-small');
refreshButton.innerHTML = '<i class="fas fa-sync-alt"></i>';
refreshButton.innerHTML = '<i class="fas fa-sync-alt"></i>';
refreshButton.setAttribute('title', i18n('refresh_captcha'));
refreshButton.style.minWidth = '30px';
refreshButton.style.height = '30px';
refreshButton.style.fontSize = '30px';
refreshButton.style.height = 'auto';
refreshButton.style.marginBottom = '4px';
refreshButton.setAttribute('type', 'button');
refreshButton.addEventListener('click', (e) => {
e.preventDefault();
+1 -1
View File
@@ -790,7 +790,7 @@ window.initgui = async function(options){
UIWindowSessionList();
}
else{
const resp = await fetch(puter.defaultGUIOrigin + '/whoarewe');
const resp = await fetch(window.gui_origin + '/whoarewe');
const whoarewe = await resp.json();
await UIWindowLogin({
// show_signup_button: