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
fix: width blink in side bar (#5291)
Peng Xiao63de73a81565
diff --git a/packages/frontend/component/src/components/resize-panel/resize-panel.tsx b/packages/frontend/component/src/components/resize-panel/resize-panel.tsxindex 294fb0d058..42584bfc82 100644--- a/packages/frontend/component/src/components/resize-panel/resize-panel.tsx+++ b/packages/frontend/component/src/components/resize-panel/resize-panel.tsx@@ -149,12 +149,13 @@ export const ResizePanel = forwardRef<HTMLDivElement, ResizePanelProps>(ref) {const enableAnimation = useEnableAnimation() && _enableAnimation;+ const safeWidth = Math.min(maxWidth, Math.max(minWidth, width));return (<div{...rest}ref={ref}style={assignInlineVars({- [styles.panelWidthVar]: `${width}px`,+ [styles.panelWidthVar]: `${safeWidth}px`,})}className={clsx(className, styles.root)}data-open={open}