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
chore(editor): update github block ui (#11690)
L-Sun6f35021f22f8
diff --git a/blocksuite/affine/blocks/embed/src/embed-github-block/embed-github-block.ts b/blocksuite/affine/blocks/embed/src/embed-github-block/embed-github-block.tsindex 7a5bbdc392..b703ac656f 100644--- a/blocksuite/affine/blocks/embed/src/embed-github-block/embed-github-block.ts+++ b/blocksuite/affine/blocks/embed/src/embed-github-block/embed-github-block.ts@@ -4,7 +4,7 @@ import type {EmbedGithubStyles,} from '@blocksuite/affine-model';import { ThemeProvider } from '@blocksuite/affine-shared/services';-import { BlockSelection } from '@blocksuite/std';+import { BlockSelection, isGfxBlockComponent } from '@blocksuite/std';import { html, nothing } from 'lit';import { property } from 'lit/decorators.js';import { classMap } from 'lit/directives/class-map.js';@@ -166,16 +166,16 @@ export class EmbedGithubBlockComponent extends EmbedBlockComponent<'affine-embed-github-block': true,loading,[style]: true,+ edgeless: isGfxBlockComponent(this),selected: this.selected$.value,})}style=${styleMap({- transform: `scale(${this._scale})`,+ // transform: `scale(${this._scale})`,transformOrigin: '0 0 ',})}@click=${this._handleClick}@dblclick=${this._handleDoubleClick}>- <div class="affine-embed-github-banner">${bannerImage}</div><div class="affine-embed-github-content"><div class="affine-embed-github-content-title"><div class="affine-embed-github-content-title-icons">@@ -260,6 +260,7 @@ export class EmbedGithubBlockComponent extends EmbedBlockComponent<</div></div></div>+ <div class="affine-embed-github-banner">${bannerImage}</div></div>`);diff --git a/blocksuite/affine/blocks/embed/src/embed-github-block/styles.ts b/blocksuite/affine/blocks/embed/src/embed-github-block/styles.tsindex 55bcd7e80f..c6c5240e8b 100644--- a/blocksuite/affine/blocks/embed/src/embed-github-block/styles.ts+++ b/blocksuite/affine/blocks/embed/src/embed-github-block/styles.ts@@ -14,6 +14,7 @@ export const styles = css`opacity: var(--add, 1);background: var(--affine-background-primary-color);user-select: none;+ overflow: hidden;}.affine-embed-github-content {@@ -275,7 +276,7 @@ export const styles = css`}.affine-embed-github-block.vertical {- flex-direction: column;+ flex-direction: column-reverse;.affine-embed-github-content {width: 100%;@@ -383,7 +384,8 @@ export const styles = css`.affine-embed-github-content {width: 100%;}- .affine-embed-github-banner {++ .affine-embed-github-block:not(.edgeless) .affine-embed-github-banner {display: none;}}