fix(web): css in mobile (#1731)
This commit is contained in:
@@ -1,11 +1,14 @@
|
|||||||
import { displayFlex, styled } from '@affine/component';
|
import { displayFlex, styled } from '@affine/component';
|
||||||
import { TableRow } from '@affine/component';
|
import { TableRow } from '@affine/component';
|
||||||
|
|
||||||
export const StyledTableContainer = styled('div')(() => {
|
export const StyledTableContainer = styled('div')(({ theme }) => {
|
||||||
return {
|
return {
|
||||||
height: 'calc(100vh - 60px)',
|
height: 'calc(100vh - 60px)',
|
||||||
padding: '78px 72px',
|
padding: '78px 72px',
|
||||||
overflowY: 'auto',
|
overflowY: 'auto',
|
||||||
|
[theme.breakpoints.down('sm')]: {
|
||||||
|
padding: '12px 24px',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
export const StyledTitleWrapper = styled('div')(({ theme }) => {
|
export const StyledTitleWrapper = styled('div')(({ theme }) => {
|
||||||
|
|||||||
@@ -208,3 +208,15 @@ affine-block-hub {
|
|||||||
.block-hub-menu-container {
|
.block-hub-menu-container {
|
||||||
position: unset !important;
|
position: unset !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.affine-default-page-block-title-container {
|
||||||
|
margin-top: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editor-wrapper {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
padding: 0 0.75rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ export const StyledTable = styled('table')<{ tableLayout: 'auto' | 'fixed' }>(
|
|||||||
minWidth: '600px',
|
minWidth: '600px',
|
||||||
borderCollapse: 'separate',
|
borderCollapse: 'separate',
|
||||||
borderSpacing: '0',
|
borderSpacing: '0',
|
||||||
|
[theme.breakpoints.down('sm')]: {
|
||||||
|
minWidth: 'unset',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user