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.

fix: long text style error in workspace card, fixed #811

QiShaoXuande43f3f0e265
diff --git a/packages/app/src/components/workspace-modal/styles.ts b/packages/app/src/components/workspace-modal/styles.ts
index 3c48b5e062..950067f93d 100644
--- a/packages/app/src/components/workspace-modal/styles.ts
+++ b/packages/app/src/components/workspace-modal/styles.ts
@@ -1,5 +1,6 @@
-import { displayFlex, displayInlineFlex, styled } from '@/styles';
+import { displayFlex, displayInlineFlex, styled, textEllipsis } from '@/styles';
import { Button } from '@/ui/button';
+import text from '*.md';
export const StyledSplitLine = styled.div(({ theme }) => {
return {
@@ -30,6 +31,8 @@ export const StyleWorkspaceTitle = styled.div(({ theme }) => {
fontWeight: 600,
lineHeight: '24px',
marginBottom: '10px',
+ maxWidth: '200px',
+ ...textEllipsis(1),
};
});