There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
feat: add positionAbsolute in style helper
QiShaoXuan056c657721d8
diff --git a/packages/app/src/styles/helper.ts b/packages/app/src/styles/helper.tsindex da70c3cd4b..3e5949ae3e 100644--- a/packages/app/src/styles/helper.ts+++ b/packages/app/src/styles/helper.ts@@ -117,3 +117,29 @@ export const textEllipsis = (lineNum = 1): CSSProperties => {whiteSpace: 'nowrap',};};++export const positionAbsolute = ({+ left,+ top,+ right,+ bottom,+}: {+ left?: CSSProperties['left'];+ top?: CSSProperties['top'];+ right?: CSSProperties['right'];+ bottom?: CSSProperties['bottom'];+}): {+ position: CSSProperties['position'];+ left: CSSProperties['left'];+ top: CSSProperties['top'];+ right: CSSProperties['right'];+ bottom: CSSProperties['bottom'];+} => {+ return {+ position: 'absolute',+ left,+ top,+ right,+ bottom,+ };+};