Skip to content

Commit

Permalink
refactor: remove flags and fit layout
Browse files Browse the repository at this point in the history
  • Loading branch information
jlsOsorio committed Jan 21, 2025
1 parent 651b9ce commit 7f3be8f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/LanguageSelector/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ type Option = {
};

export const languageOptions: Option[] = [
{ value: "en", label: "🇺🇸 English" },
// { value: "el", label: "🇬🇷 Ελληνικά" },
{ value: "en", label: "English" },
// { value: "el", label: "Ελληνικά" },
];
4 changes: 2 additions & 2 deletions src/pages/Login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -664,13 +664,13 @@ const Auth = () => {
/>
}>
<div className="relative p-6 space-y-4 md:space-y-6 sm:p-8 bg-white rounded-lg shadow dark:bg-gray-800">
<h1 className="text-xl font-bold leading-tight tracking-tight text-gray-900 md:text-2xl text-center dark:text-white">
<h1 className="my-5 md:my-0 text-xl font-bold leading-tight tracking-tight text-gray-900 md:text-2xl text-center dark:text-white">
{isLoginCache ? t('loginSignup.loginCache') : isLogin ? t('loginSignup.login') : t('loginSignup.signUp')}
</h1>
<div className='absolute text-gray-500 dark:text-white dark top-0 left-5'>
<ConnectionStatusIcon backgroundColor='light' />
</div>
<LanguageSelector className='absolute text-gray-500 dark top-0 right-5 rounded bg-white dark:bg-gray-800 text-gray-900 dark:text-white' showFullLabel={false} />
<LanguageSelector className='absolute font-medium px-1 dark top-0 right-3 text-sm text-primary dark:text-white cursor-pointer rounded focus:outline-none dark:bg-gray-800' showFullLabel={false} />
{isOnline === false && (
<p className="text-sm font-light text-gray-500 dark:text-gray-200 italic mb-2">
<FaInfoCircle size={14} className="text-md inline-block text-gray-500 mr-2" />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ const Settings = () => {
<H2 heading={t('pageSettings.title.language')} />
<div className="relative inline-block min-w-36 text-gray-700">
<div className="relative w-full h-10">
<LanguageSelector className="w-full pl-3 pr-10 border border-gray-300 dark:border-gray-500 dark:bg-gray-800 dark:text-white rounded-lg focus:outline-none focus:ring-blue-500 focus:border-blue-500 dark:inputDarkModeOverride py-1.5 px-3 w-36 appearance-none" showFullLabel />
<LanguageSelector className="w-full pl-3 pr-10 border border-gray-300 dark:border-gray-500 dark:bg-gray-800 dark:text-white rounded-lg focus:outline-none focus:ring-blue-500 focus:border-blue-500 dark:inputDarkModeOverride py-1.5 px-3 appearance-none" showFullLabel />
<span className="absolute top-1/2 right-2 transform -translate-y-1/2 pointer-events-none">
<IoIosArrowDown />
</span>
Expand Down

0 comments on commit 7f3be8f

Please sign in to comment.