From: PhiTux Date: Fri, 3 Oct 2025 15:41:28 +0000 (+0200) Subject: css fixes for login X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=06335eb543ebf88fba2d947e2e0d613e91a361b0;p=DailyTxT.git css fixes for login --- diff --git a/frontend/src/routes/login/+page.svelte b/frontend/src/routes/login/+page.svelte index d4c03ae..379a9a4 100644 --- a/frontend/src/routes/login/+page.svelte +++ b/frontend/src/routes/login/+page.svelte @@ -7,6 +7,7 @@ import { API_URL } from '$lib/APIurl.js'; import { getTranslate, getTolgee } from '@tolgee/svelte'; import { isAuthenticated, loadFlagEmoji } from '$lib/helpers.js'; + import { fade } from 'svelte/transition'; const { t } = getTranslate(); const tolgee = getTolgee(['language']); @@ -89,8 +90,22 @@ // check if registration is allowed checkRegistrationAllowed(); + + getVersionInfo(); }); + let current_version = $state(''); + function getVersionInfo() { + axios + .get(API_URL + '/version') + .then((response) => { + current_version = response.data.current_version; + }) + .catch((error) => { + console.error('Error fetching version info:', error); + }); + } + function checkRegistrationAllowed() { axios .get(API_URL + '/users/isRegistrationAllowed') @@ -243,13 +258,22 @@ }); -
+
@@ -649,6 +674,7 @@ .logo-wrapper { width: 50%; + z-index: 1; } #largeLogo { @@ -665,10 +691,33 @@ .login-wrapper { width: 50%; + /* z-index: 10; */ + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + overflow-y: auto; + } + + .fill { + height: 3rem; + min-height: 3rem; + flex: 1 1 auto; } #loginAccordion { width: 70%; + margin-top: 1rem; + margin-bottom: 3rem; + z-index: 10; + } + + .logo-login-flex { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + overflow-y: hidden; } @media screen and (min-width: 769px) and (max-width: 1000px) { @@ -680,24 +729,36 @@ @media screen and (max-width: 768px) { .logo-login-flex { flex-direction: column !important; + justify-content: inherit; + overflow-y: auto; } .login-wrapper { min-width: 50%; max-width: 75%; + overflow-y: clip; + height: auto; + margin-top: 3rem; + margin-bottom: 3rem; } #loginAccordion { width: 100%; + margin-top: 1rem; + margin-bottom: 0; } .logo-wrapper { width: 70%; - margin-bottom: 3rem; + margin-top: 3rem; + } + + .fill { + display: none; } } - @media screen and (max-width: 540px) { + @media screen and (max-width: 700px) { .logo-wrapper { width: 90%; } @@ -706,4 +767,11 @@ width: 80%; } } + + @media screen and (max-width: 500px) { + .login-wrapper { + width: 100%; + max-width: 90%; + } + }