Skip to content

Commit

Permalink
fix(database): can't use horizontal scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
golok727 committed Oct 22, 2024
1 parent 231c950 commit d1edde1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/blocks/src/_common/components/block-zero-width.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import type { BlockComponent } from '@blocksuite/block-std';

import { focusTextModel } from '@blocksuite/affine-components/rich-text';
import { stopPropagation } from '@blocksuite/affine-shared/utils';
import { ZERO_WIDTH_SPACE } from '@blocksuite/inline/consts';
import { css, html, LitElement } from 'lit';
import { property } from 'lit/decorators.js';

export class BlockZeroWidth extends LitElement {
static override styles = css`
.block-zero-width {
position: absolute;
bottom: -10px;
bottom: -15px;
height: 10px;
width: 100%;
cursor: text;
z-index: 1;
Expand All @@ -34,9 +34,10 @@ export class BlockZeroWidth extends LitElement {
}

override render() {
return html`<div class="block-zero-width" @click=${this.handleClick}>
<span>${ZERO_WIDTH_SPACE}</span>
</div>`;
return html`<div
class="block-zero-width"
@click=${this.handleClick}
></div>`;
}

@property({ attribute: false })
Expand Down

0 comments on commit d1edde1

Please sign in to comment.