mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
restore hover effect from commafeed v2
This commit is contained in:
@@ -32,6 +32,11 @@ const useStyles = createStyles((theme, props: FeedEntryProps & { viewMode?: View
|
|||||||
if (props.viewMode === "title") mobileMarginY = 2
|
if (props.viewMode === "title") mobileMarginY = 2
|
||||||
else if (props.viewMode === "cozy") mobileMarginY = 4
|
else if (props.viewMode === "cozy") mobileMarginY = 4
|
||||||
|
|
||||||
|
let backgroundHoverColor = backgroundColor
|
||||||
|
if (!props.expanded) {
|
||||||
|
backgroundHoverColor = theme.colorScheme === "dark" ? theme.colors.dark[7] : theme.colors.gray[0]
|
||||||
|
}
|
||||||
|
|
||||||
const styles = {
|
const styles = {
|
||||||
paper: {
|
paper: {
|
||||||
backgroundColor,
|
backgroundColor,
|
||||||
@@ -41,6 +46,9 @@ const useStyles = createStyles((theme, props: FeedEntryProps & { viewMode?: View
|
|||||||
marginTop: mobileMarginY,
|
marginTop: mobileMarginY,
|
||||||
marginBottom: mobileMarginY,
|
marginBottom: mobileMarginY,
|
||||||
},
|
},
|
||||||
|
"&:hover": {
|
||||||
|
backgroundColor: backgroundHoverColor,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
body: {
|
body: {
|
||||||
maxWidth: Constants.layout.entryMaxWidth,
|
maxWidth: Constants.layout.entryMaxWidth,
|
||||||
|
|||||||
Reference in New Issue
Block a user