fix: Standardize card/list action buttons and hover states (#51) #52
@@ -232,15 +232,6 @@ export const DocumentsPage: React.FC = () => {
|
|||||||
color: 'text.secondary',
|
color: 'text.secondary',
|
||||||
minWidth: isMobile ? 48 : 'auto',
|
minWidth: isMobile ? 48 : 'auto',
|
||||||
minHeight: isMobile ? 48 : 'auto',
|
minHeight: isMobile ? 48 : 'auto',
|
||||||
'&:hover': {
|
|
||||||
backgroundColor: 'primary.main',
|
|
||||||
color: 'white',
|
|
||||||
},
|
|
||||||
...(isMobile && {
|
|
||||||
border: '1px solid',
|
|
||||||
borderColor: 'divider',
|
|
||||||
borderRadius: 2,
|
|
||||||
}),
|
|
||||||
}}
|
}}
|
||||||
title="View Details"
|
title="View Details"
|
||||||
>
|
>
|
||||||
@@ -253,15 +244,6 @@ export const DocumentsPage: React.FC = () => {
|
|||||||
color: 'text.secondary',
|
color: 'text.secondary',
|
||||||
minWidth: isMobile ? 48 : 'auto',
|
minWidth: isMobile ? 48 : 'auto',
|
||||||
minHeight: isMobile ? 48 : 'auto',
|
minHeight: isMobile ? 48 : 'auto',
|
||||||
'&:hover': {
|
|
||||||
backgroundColor: 'primary.main',
|
|
||||||
color: 'white',
|
|
||||||
},
|
|
||||||
...(isMobile && {
|
|
||||||
border: '1px solid',
|
|
||||||
borderColor: 'divider',
|
|
||||||
borderRadius: 2,
|
|
||||||
}),
|
|
||||||
}}
|
}}
|
||||||
title="Edit"
|
title="Edit"
|
||||||
>
|
>
|
||||||
@@ -274,15 +256,6 @@ export const DocumentsPage: React.FC = () => {
|
|||||||
color: 'error.main',
|
color: 'error.main',
|
||||||
minWidth: isMobile ? 48 : 'auto',
|
minWidth: isMobile ? 48 : 'auto',
|
||||||
minHeight: isMobile ? 48 : 'auto',
|
minHeight: isMobile ? 48 : 'auto',
|
||||||
'&:hover': {
|
|
||||||
backgroundColor: 'error.main',
|
|
||||||
color: 'white',
|
|
||||||
},
|
|
||||||
...(isMobile && {
|
|
||||||
border: '1px solid',
|
|
||||||
borderColor: 'error.main',
|
|
||||||
borderRadius: 2,
|
|
||||||
}),
|
|
||||||
}}
|
}}
|
||||||
title="Delete"
|
title="Delete"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -208,15 +208,9 @@ export const FuelLogsList: React.FC<FuelLogsListProps> = ({ logs, onEdit, onDele
|
|||||||
size={isMobile ? 'medium' : 'small'}
|
size={isMobile ? 'medium' : 'small'}
|
||||||
onClick={() => onEdit(log)}
|
onClick={() => onEdit(log)}
|
||||||
sx={{
|
sx={{
|
||||||
color: 'primary.main',
|
color: 'text.secondary',
|
||||||
'&:hover': { backgroundColor: 'primary.main', color: 'white' },
|
|
||||||
minWidth: isMobile ? 48 : 'auto',
|
minWidth: isMobile ? 48 : 'auto',
|
||||||
minHeight: isMobile ? 48 : 'auto',
|
minHeight: isMobile ? 48 : 'auto',
|
||||||
...(isMobile && {
|
|
||||||
border: '1px solid',
|
|
||||||
borderColor: 'primary.main',
|
|
||||||
borderRadius: 2
|
|
||||||
})
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Edit fontSize={isMobile ? 'medium' : 'small'} />
|
<Edit fontSize={isMobile ? 'medium' : 'small'} />
|
||||||
@@ -228,14 +222,8 @@ export const FuelLogsList: React.FC<FuelLogsListProps> = ({ logs, onEdit, onDele
|
|||||||
onClick={() => handleDeleteClick(log)}
|
onClick={() => handleDeleteClick(log)}
|
||||||
sx={{
|
sx={{
|
||||||
color: 'error.main',
|
color: 'error.main',
|
||||||
'&:hover': { backgroundColor: 'error.main', color: 'white' },
|
|
||||||
minWidth: isMobile ? 48 : 'auto',
|
minWidth: isMobile ? 48 : 'auto',
|
||||||
minHeight: isMobile ? 48 : 'auto',
|
minHeight: isMobile ? 48 : 'auto',
|
||||||
...(isMobile && {
|
|
||||||
border: '1px solid',
|
|
||||||
borderColor: 'error.main',
|
|
||||||
borderRadius: 2
|
|
||||||
})
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Delete fontSize={isMobile ? 'medium' : 'small'} />
|
<Delete fontSize={isMobile ? 'medium' : 'small'} />
|
||||||
|
|||||||
@@ -157,18 +157,9 @@ export const MaintenanceRecordsList: React.FC<MaintenanceRecordsListProps> = ({
|
|||||||
size={isMobile ? 'medium' : 'small'}
|
size={isMobile ? 'medium' : 'small'}
|
||||||
onClick={() => onEdit(record)}
|
onClick={() => onEdit(record)}
|
||||||
sx={{
|
sx={{
|
||||||
color: 'primary.main',
|
color: 'text.secondary',
|
||||||
minWidth: 44,
|
minWidth: 44,
|
||||||
minHeight: 44,
|
minHeight: 44,
|
||||||
'&:hover': {
|
|
||||||
backgroundColor: 'primary.main',
|
|
||||||
color: 'white',
|
|
||||||
},
|
|
||||||
...(isMobile && {
|
|
||||||
border: '1px solid',
|
|
||||||
borderColor: 'primary.main',
|
|
||||||
borderRadius: 2,
|
|
||||||
}),
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Edit fontSize={isMobile ? 'medium' : 'small'} />
|
<Edit fontSize={isMobile ? 'medium' : 'small'} />
|
||||||
@@ -182,15 +173,6 @@ export const MaintenanceRecordsList: React.FC<MaintenanceRecordsListProps> = ({
|
|||||||
color: 'error.main',
|
color: 'error.main',
|
||||||
minWidth: 44,
|
minWidth: 44,
|
||||||
minHeight: 44,
|
minHeight: 44,
|
||||||
'&:hover': {
|
|
||||||
backgroundColor: 'error.main',
|
|
||||||
color: 'white',
|
|
||||||
},
|
|
||||||
...(isMobile && {
|
|
||||||
border: '1px solid',
|
|
||||||
borderColor: 'error.main',
|
|
||||||
borderRadius: 2,
|
|
||||||
}),
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Delete fontSize={isMobile ? 'medium' : 'small'} />
|
<Delete fontSize={isMobile ? 'medium' : 'small'} />
|
||||||
|
|||||||
@@ -257,18 +257,9 @@ export const MaintenanceSchedulesList: React.FC<MaintenanceSchedulesListProps> =
|
|||||||
size={isMobile ? 'medium' : 'small'}
|
size={isMobile ? 'medium' : 'small'}
|
||||||
onClick={() => onEdit(schedule)}
|
onClick={() => onEdit(schedule)}
|
||||||
sx={{
|
sx={{
|
||||||
color: 'primary.main',
|
color: 'text.secondary',
|
||||||
minWidth: 44,
|
minWidth: 44,
|
||||||
minHeight: 44,
|
minHeight: 44,
|
||||||
'&:hover': {
|
|
||||||
backgroundColor: 'primary.main',
|
|
||||||
color: 'white',
|
|
||||||
},
|
|
||||||
...(isMobile && {
|
|
||||||
border: '1px solid',
|
|
||||||
borderColor: 'primary.main',
|
|
||||||
borderRadius: 2,
|
|
||||||
}),
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Edit fontSize={isMobile ? 'medium' : 'small'} />
|
<Edit fontSize={isMobile ? 'medium' : 'small'} />
|
||||||
@@ -282,15 +273,6 @@ export const MaintenanceSchedulesList: React.FC<MaintenanceSchedulesListProps> =
|
|||||||
color: 'error.main',
|
color: 'error.main',
|
||||||
minWidth: 44,
|
minWidth: 44,
|
||||||
minHeight: 44,
|
minHeight: 44,
|
||||||
'&:hover': {
|
|
||||||
backgroundColor: 'error.main',
|
|
||||||
color: 'white',
|
|
||||||
},
|
|
||||||
...(isMobile && {
|
|
||||||
border: '1px solid',
|
|
||||||
borderColor: 'error.main',
|
|
||||||
borderRadius: 2,
|
|
||||||
}),
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Delete fontSize={isMobile ? 'medium' : 'small'} />
|
<Delete fontSize={isMobile ? 'medium' : 'small'} />
|
||||||
|
|||||||
Reference in New Issue
Block a user