fided left hand mode

This commit is contained in:
nvrl committed 2026-05-08 22:06:11 +02:00
1 parent 7a8089a194
commit 8815ec33cd
4 files changed
+23 -5

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ const STORAGE_KEY = 'drawer-anchor';
const readLocal = (): DrawerAnchor => {
const raw = localStorage.getItem(STORAGE_KEY);
return raw === 'right' ? 'right' : 'left';
return raw === 'left' ? 'left' : 'right';
};
export interface UseDrawerAnchorResult {
+3 -3
View File
@@ -305,8 +305,8 @@ const Settings: React.FC<SettingsProps> = ({ themeName, onThemeChange }) => {
<FormControlLabel
control={
<Switch
checked={drawerAnchor === 'right'}
onChange={(e) => setDrawerAnchor(e.target.checked ? 'right' : 'left')}
checked={drawerAnchor === 'left'}
onChange={(e) => setDrawerAnchor(e.target.checked ? 'left' : 'right')}
/>
}
label={
@@ -317,7 +317,7 @@ const Settings: React.FC<SettingsProps> = ({ themeName, onThemeChange }) => {
<Typography variant="caption" color="text.secondary">
{t('settings.leftHandModeHint', {
defaultValue:
'Mobile drawer slides in from the right (better for left-handed thumb reach).',
'Mobile drawer slides in from the left (better for left-handed thumb reach).',
})}
</Typography>
</Box>