mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 23:45:48 +01:00
🐛 wrong absolute position of torrent options menu
This commit is contained in:
@@ -186,8 +186,13 @@ export function ModuleWrapper(props: any) {
|
||||
);
|
||||
}
|
||||
|
||||
export function ModuleMenu(props: any) {
|
||||
const { module, styles, hovered } = props;
|
||||
interface ModuleMenuProps {
|
||||
hovered: boolean;
|
||||
module: IModule;
|
||||
}
|
||||
|
||||
export function ModuleMenu(props: ModuleMenuProps) {
|
||||
const { module, hovered } = props;
|
||||
const items: JSX.Element[] = getItems(module);
|
||||
const { t } = useTranslation('modules/common');
|
||||
return (
|
||||
@@ -207,12 +212,13 @@ export function ModuleMenu(props: any) {
|
||||
<motion.div
|
||||
style={{
|
||||
position: 'absolute',
|
||||
top: 15,
|
||||
right: 15,
|
||||
top: module.padding?.top ?? 15,
|
||||
right: module.padding?.right ?? 15,
|
||||
alignSelf: 'flex-end',
|
||||
zIndex: 10,
|
||||
}}
|
||||
animate={{
|
||||
opacity: hovered === true ? 1 : 0,
|
||||
opacity: hovered ? 1 : 0,
|
||||
}}
|
||||
>
|
||||
<ActionIcon>
|
||||
|
||||
Reference in New Issue
Block a user