mirror of
https://github.com/immich-app/immich.git
synced 2025-11-25 12:00:42 +09:00
fix(web): minor album card issues (#7975)
* fix(web): minor album card issues * fix album grid gap
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
export type Align = 'middle' | 'top-left' | 'top-right';
|
||||
|
||||
export const getContextMenuPosition = (event: MouseEvent, align: Align = 'middle') => {
|
||||
export type ContextMenuPosition = { x: number; y: number };
|
||||
|
||||
export const getContextMenuPosition = (event: MouseEvent, align: Align = 'middle'): ContextMenuPosition => {
|
||||
const { x, y, currentTarget, target } = event;
|
||||
const box = ((currentTarget || target) as HTMLElement)?.getBoundingClientRect();
|
||||
if (box) {
|
||||
|
||||
Reference in New Issue
Block a user