mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 23:45:48 +01:00
🐛 Fix ModuleWrapper Hover state
This commit is contained in:
@@ -181,9 +181,6 @@ export function ModuleWrapper(props: any) {
|
||||
export function ModuleMenu(props: any) {
|
||||
const { module, styles, hovered } = props;
|
||||
const items: JSX.Element[] = getItems(module);
|
||||
if (!hovered) {
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
<>
|
||||
{module.options && (
|
||||
@@ -210,7 +207,7 @@ export function ModuleMenu(props: any) {
|
||||
right: 12,
|
||||
}}
|
||||
>
|
||||
<motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }}>
|
||||
<motion.div initial={{ opacity: 0 }} animate={{ opacity: hovered ? 1 : 0 }}>
|
||||
<ActionIcon>
|
||||
<IconAdjustments />
|
||||
</ActionIcon>
|
||||
|
||||
Reference in New Issue
Block a user