mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
fix: long text style error in workspace card, fixed #811
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { displayFlex, displayInlineFlex, styled } from '@/styles';
|
import { displayFlex, displayInlineFlex, styled, textEllipsis } from '@/styles';
|
||||||
import { Button } from '@/ui/button';
|
import { Button } from '@/ui/button';
|
||||||
|
import text from '*.md';
|
||||||
|
|
||||||
export const StyledSplitLine = styled.div(({ theme }) => {
|
export const StyledSplitLine = styled.div(({ theme }) => {
|
||||||
return {
|
return {
|
||||||
@@ -30,6 +31,8 @@ export const StyleWorkspaceTitle = styled.div(({ theme }) => {
|
|||||||
fontWeight: 600,
|
fontWeight: 600,
|
||||||
lineHeight: '24px',
|
lineHeight: '24px',
|
||||||
marginBottom: '10px',
|
marginBottom: '10px',
|
||||||
|
maxWidth: '200px',
|
||||||
|
...textEllipsis(1),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user