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): code block toolbar float offset (#10579)
L-Sun2cd83be6212d
diff --git a/blocksuite/affine/block-code/src/code-toolbar/index.ts b/blocksuite/affine/block-code/src/code-toolbar/index.tsindex f5d08669f2..673559d85b 100644--- a/blocksuite/affine/block-code/src/code-toolbar/index.ts+++ b/blocksuite/affine/block-code/src/code-toolbar/index.ts@@ -8,7 +8,6 @@ import {getMoreMenuConfig,} from '@blocksuite/affine-components/toolbar';import type { CodeBlockModel } from '@blocksuite/affine-model';-import { PAGE_HEADER_HEIGHT } from '@blocksuite/affine-shared/consts';import {BlockSelection,TextSelection,@@ -92,7 +91,6 @@ export class AffineCodeToolbarWidget extends WidgetComponent<shift({crossAxis: true,padding: {- top: PAGE_HEADER_HEIGHT + 12,bottom: 12,right: 12,},diff --git a/blocksuite/affine/block-code/src/styles.ts b/blocksuite/affine/block-code/src/styles.tsindex 1df5579ed8..c527612e2d 100644--- a/blocksuite/affine/block-code/src/styles.ts+++ b/blocksuite/affine/block-code/src/styles.ts@@ -1,10 +1,6 @@import { css } from 'lit';export const codeBlockStyles = css`- affine-code {- position: relative;- }-.affine-code-block-container {font-size: var(--affine-font-xs);line-height: var(--affine-line-height);