mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
fided left hand mode
This commit is contained in:
1 parent
7a8089a194
commit
8815ec33cd
4 files changed
+23
-5
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user