mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 09:41:35 +10:00
feat: use server-actions for authoring flow
This change actually makes the authoring flow work for the most part by tying in emailing and more. We have also done a number of quality of life updates to simplify the codebase overall making it easier to continue work on the refresh.
This commit is contained in:
10
apps/web/src/helpers/getBoundingClientRect.ts
Normal file
10
apps/web/src/helpers/getBoundingClientRect.ts
Normal file
@ -0,0 +1,10 @@
|
||||
export const getBoundingClientRect = (element: HTMLElement) => {
|
||||
const rect = element.getBoundingClientRect();
|
||||
|
||||
const { width, height } = rect;
|
||||
|
||||
const top = rect.top + window.scrollY;
|
||||
const left = rect.left + window.scrollX;
|
||||
|
||||
return { top, left, width, height };
|
||||
};
|
||||
Reference in New Issue
Block a user