Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dailydotdev/apps
/ getCenteredOffset
Function
getCenteredOffset
packages/shared/src/components/alert/AlertPointer.tsx:53–53 ·
view source on GitHub ↗
(offset: number)
Source
from the content-addressed store, hash-verified
51
};
52
53
const getCenteredOffset = (offset: number) => `calc(50% - ${offset}px)`;
54
55
const getContainerStyle = (
56
[xOffset = 0, yOffset = 0]: OffsetXY = [0, 0],
Callers
1
getContainerStyle
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected