Fix/setting buttons unclickable area (#379)
* Move "onClick" handler to "ListItemButton" - LibrarySettings "global update categories" Clicks were only handled on the button content leading to a small area around the content to not handle the clicks, thus, not opening the dialog * Move "onClick" handler to "ListItemButton" - Settings "manga item width" Clicks were only handled on the button content leading to a small area around the content to not handle the clicks, thus, not opening the dialog
This commit is contained in:
@@ -139,17 +139,15 @@ export default function Settings() {
|
|||||||
</ListItemSecondaryAction>
|
</ListItemSecondaryAction>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
<SearchSettings />
|
<SearchSettings />
|
||||||
<ListItemButton>
|
<ListItemButton
|
||||||
|
onClick={() => {
|
||||||
|
handleDialogOpenItemWidth();
|
||||||
|
}}
|
||||||
|
>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<ViewModuleIcon />
|
<ViewModuleIcon />
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
<ListItemText
|
<ListItemText primary={t('settings.label.manga_item_width')} secondary={`px:${ItemWidth}`} />
|
||||||
primary={t('settings.label.manga_item_width')}
|
|
||||||
secondary={`px:${ItemWidth}`}
|
|
||||||
onClick={() => {
|
|
||||||
handleDialogOpenItemWidth();
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</ListItemButton>
|
</ListItemButton>
|
||||||
<ListItem>
|
<ListItem>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ export default function LibrarySettings() {
|
|||||||
</ListSubheader>
|
</ListSubheader>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<ListItemButton>
|
<ListItemButton onClick={() => setIsDialogOpen(true)}>
|
||||||
<ListItemText
|
<ListItemText
|
||||||
primary={t('category.title.categories')}
|
primary={t('category.title.categories')}
|
||||||
secondary={
|
secondary={
|
||||||
@@ -163,7 +163,6 @@ export default function LibrarySettings() {
|
|||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
secondaryTypographyProps={{ style: { display: 'flex', flexDirection: 'column' } }}
|
secondaryTypographyProps={{ style: { display: 'flex', flexDirection: 'column' } }}
|
||||||
onClick={() => setIsDialogOpen(true)}
|
|
||||||
/>
|
/>
|
||||||
</ListItemButton>
|
</ListItemButton>
|
||||||
</List>
|
</List>
|
||||||
|
|||||||
Reference in New Issue
Block a user