Adjust position of selectors

This commit is contained in:
Nicola Benaglia 2025-05-29 09:25:29 +02:00
parent e68317da3a
commit 5cf3e94b8e
3 changed files with 57 additions and 7 deletions

View File

@ -307,7 +307,7 @@ function App() {
const [sendqortState, setSendqortState] = useState<any>(null);
const [isLoading, setIsLoading] = useState<boolean>(false);
const [isLoadingSendCoin, setIsLoadingSendCoin] = useState<boolean>(false);
const isAuthenticated = extState === 'authenticated';
const { t } = useTranslation([
'auth',
'core',
@ -3959,8 +3959,27 @@ function App() {
/>
)}
<LanguageSelector />
<ThemeSelector />
{!isAuthenticated && (
<Box
sx={{
alignItems: 'flex-start',
bottom: '1%',
display: 'flex',
flexDirection: 'column',
left: '1%',
position: 'absolute',
width: 'auto',
}}
>
<Box sx={{ alignSelf: 'left' }}>
<LanguageSelector />
</Box>
<Box sx={{ alignSelf: 'center' }}>
<ThemeSelector />
</Box>
</Box>
)}
</AppContainer>
);
}

View File

@ -170,9 +170,25 @@ export const AppsHomeDesktop = ({
/>
</AppsContainer>
<LanguageSelector />
<Box
sx={{
alignItems: 'flex-start',
bottom: '1%',
display: 'flex',
flexDirection: 'column',
left: '4px',
position: 'absolute',
width: 'auto',
}}
>
<Box sx={{ alignSelf: 'left' }}>
<LanguageSelector />
</Box>
<ThemeSelector />
<Box sx={{ alignSelf: 'center' }}>
<ThemeSelector />
</Box>
</Box>
</>
);
};

View File

@ -151,9 +151,24 @@ export const DesktopSideBar = ({
</ButtonBase>
)}
<LanguageSelector />
<Box
sx={{
alignItems: 'flex-start',
bottom: '1%',
display: 'flex',
flexDirection: 'column',
position: 'absolute',
width: 'auto',
}}
>
<Box sx={{ alignSelf: 'left' }}>
<LanguageSelector />
</Box>
<ThemeSelector />
<Box sx={{ alignSelf: 'center' }}>
<ThemeSelector />
</Box>
</Box>
</Box>
);
};