diff options
| author | Yash <[email protected]> | 2024-04-09 13:47:27 +0000 |
|---|---|---|
| committer | Yash <[email protected]> | 2024-04-09 13:47:27 +0000 |
| commit | 1693f33b01aeda720c1cf0ff721780c14a6a66c3 (patch) | |
| tree | cdbfc3d269a6725d1a6063100a07dd1afe7ea11c /apps/web/src/lib | |
| parent | // (diff) | |
| download | supermemory-1693f33b01aeda720c1cf0ff721780c14a6a66c3.tar.xz supermemory-1693f33b01aeda720c1cf0ff721780c14a6a66c3.zip | |
chat implementation
Diffstat (limited to 'apps/web/src/lib')
| -rw-r--r-- | apps/web/src/lib/utils.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/web/src/lib/utils.ts b/apps/web/src/lib/utils.ts index 8f4392b9..5eca08cc 100644 --- a/apps/web/src/lib/utils.ts +++ b/apps/web/src/lib/utils.ts @@ -71,3 +71,7 @@ export function countLines(textarea: HTMLTextAreaElement): number { return 0; } + +export function convertRemToPixels(rem: number) { + return rem * parseFloat(getComputedStyle(document.documentElement).fontSize); +} |