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>
|
||||
</ListItem>
|
||||
<SearchSettings />
|
||||
<ListItemButton>
|
||||
<ListItemButton
|
||||
onClick={() => {
|
||||
handleDialogOpenItemWidth();
|
||||
}}
|
||||
>
|
||||
<ListItemIcon>
|
||||
<ViewModuleIcon />
|
||||
</ListItemIcon>
|
||||
<ListItemText
|
||||
primary={t('settings.label.manga_item_width')}
|
||||
secondary={`px:${ItemWidth}`}
|
||||
onClick={() => {
|
||||
handleDialogOpenItemWidth();
|
||||
}}
|
||||
/>
|
||||
<ListItemText primary={t('settings.label.manga_item_width')} secondary={`px:${ItemWidth}`} />
|
||||
</ListItemButton>
|
||||
<ListItem>
|
||||
<ListItemIcon>
|
||||
|
||||
@@ -145,7 +145,7 @@ export default function LibrarySettings() {
|
||||
</ListSubheader>
|
||||
}
|
||||
>
|
||||
<ListItemButton>
|
||||
<ListItemButton onClick={() => setIsDialogOpen(true)}>
|
||||
<ListItemText
|
||||
primary={t('category.title.categories')}
|
||||
secondary={
|
||||
@@ -163,7 +163,6 @@ export default function LibrarySettings() {
|
||||
</>
|
||||
}
|
||||
secondaryTypographyProps={{ style: { display: 'flex', flexDirection: 'column' } }}
|
||||
onClick={() => setIsDialogOpen(true)}
|
||||
/>
|
||||
</ListItemButton>
|
||||
</List>
|
||||
|
||||
Reference in New Issue
Block a user