Skip to content

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.

opti: 1.adjust padding of page-tree item; 2. fetch new icon from figma;

mitsuhaf0cfcbc5335b
diff --git a/libs/components/ui/src/button/IconButton.tsx b/libs/components/ui/src/button/IconButton.tsx
index 9e4dd087bb..77e1f08a6e 100644
--- a/libs/components/ui/src/button/IconButton.tsx
+++ b/libs/components/ui/src/button/IconButton.tsx
@@ -36,7 +36,7 @@ interface IconButtonProps {
style?: CSSProperties;
className?: string;
size?: SizeType;
- hoverColor?: CSSProperties['backgroundColor'];
+ hoverColor?: string;
}
export const IconButton: FC<PropsWithChildren<IconButtonProps>> = ({
@@ -60,7 +60,7 @@ export const IconButton: FC<PropsWithChildren<IconButtonProps>> = ({
const Container = styled('button')<{
size?: SizeType;
- hoverColor?: CSSProperties['backgroundColor'];
+ hoverColor?: string;
}>(({ theme, size = SIZE_MIDDLE, hoverColor }) => {
const { iconSize, areaSize } = SIZE_CONFIG[size];