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.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(editor): adjust the style of the table block (#10348)
zzj37204d759766b991
diff --git a/blocksuite/affine/block-table/src/table-block.css.ts b/blocksuite/affine/block-table/src/table-block.css.tsindex ca4eae7fcb..d6f176a70f 100644--- a/blocksuite/affine/block-table/src/table-block.css.ts+++ b/blocksuite/affine/block-table/src/table-block.css.ts@@ -2,8 +2,7 @@ import { style } from '@vanilla-extract/css';export const tableContainer = style({display: 'block',- backgroundColor: 'var(--affine-background-primary-color)',- padding: '10px 0 18px',+ padding: '10px 0 18px 10px',overflowX: 'auto',overflowY: 'visible',selectors: {diff --git a/blocksuite/affine/block-table/src/table-block.ts b/blocksuite/affine/block-table/src/table-block.tsindex 5a1d772316..807e8d3582 100644--- a/blocksuite/affine/block-table/src/table-block.ts+++ b/blocksuite/affine/block-table/src/table-block.ts@@ -135,7 +135,7 @@ export class TableBlockComponent extends CaptionedBlockComponent<TableBlockModelcontenteditable="false"class=${tableContainer}style=${styleMap({- marginLeft: `-${virtualPadding}px`,+ marginLeft: `-${virtualPadding + 10}px`,marginRight: `-${virtualPadding}px`,position: 'relative',})}diff --git a/blocksuite/affine/block-table/src/table-cell.css.ts b/blocksuite/affine/block-table/src/table-cell.css.tsindex aadbdf47d1..53e3e48236 100644--- a/blocksuite/affine/block-table/src/table-cell.css.ts+++ b/blocksuite/affine/block-table/src/table-cell.css.ts@@ -4,7 +4,8 @@ import { createVar, style } from '@vanilla-extract/css';export const cellContainerStyle = style({position: 'relative',alignItems: 'center',- border: '1px solid var(--affine-border-color)',+ border: '1px solid',+ borderColor: cssVarV2.table.border,borderCollapse: 'collapse',isolation: 'auto',textAlign: 'start',