feat: page list supports preview (#2606)

This commit is contained in:
Whitewater
2023-05-30 21:24:55 -07:00
committed by Himself65
parent 7c6d5adde5
commit 30cbde31cb
6 changed files with 50 additions and 8 deletions
@@ -1,4 +1,4 @@
import { displayFlex, styled } from '@affine/component';
import { Content, displayFlex, styled } from '@affine/component';
import { TableRow } from '@affine/component';
export const StyledTableContainer = styled('div')(({ theme }) => {
@@ -50,6 +50,24 @@ export const StyledTitleLink = styled('div')(() => {
};
});
export const StyledTitleContentWrapper = styled('div')(() => {
return {
display: 'flex',
flexDirection: 'column',
alignItems: 'flex-start',
width: '100%',
overflow: 'hidden',
};
});
export const StyledTitlePreview = styled(Content)(() => {
return {
fontWeight: 400,
fontSize: 'var(--affine-font-xs)',
maxWidth: '100%',
};
});
export const StyledTableRow = styled(TableRow)(() => {
return {
cursor: 'pointer',