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): list toggle position offset (#10448)
doodlewind589622043c49
diff --git a/blocksuite/affine/components/src/toggle-button/toggle-button.ts b/blocksuite/affine/components/src/toggle-button/toggle-button.tsindex 3ddd1be0f9..12c6bd1b91 100644--- a/blocksuite/affine/components/src/toggle-button/toggle-button.ts+++ b/blocksuite/affine/components/src/toggle-button/toggle-button.ts@@ -13,8 +13,11 @@ export class ToggleButton extends WithDisposable(ShadowlessElement) {.toggle-icon {display: flex;align-items: start;- margin-top: 0.45em;+ justify-content: start;position: absolute;+ width: 16px;+ height: 16px;+ top: calc((1em - 16px) / 2 + 5px);left: 0;transform: translateX(-100%);border-radius: 4px;@@ -22,6 +25,7 @@ export class ToggleButton extends WithDisposable(ShadowlessElement) {opacity: 0;transition: opacity 0.2s ease-in-out;}+.toggle-icon:hover {background: var(--affine-hover-color);}