mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 09:06:19 +08:00
refactor(editor): cleanup list icons (#10608)
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import { ShadowlessElement } from '@blocksuite/block-std';
|
||||
import { WithDisposable } from '@blocksuite/global/utils';
|
||||
import { ToggleDownIcon, ToggleRightIcon } from '@blocksuite/icons/lit';
|
||||
import { css, unsafeCSS } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
import { html } from 'lit-html';
|
||||
|
||||
import { toggleDown, toggleRight } from '../icons/list.js';
|
||||
|
||||
export const TOGGLE_BUTTON_PARENT_CLASS = 'blocksuite-toggle-button-parent';
|
||||
|
||||
export class ToggleButton extends WithDisposable(ShadowlessElement) {
|
||||
@@ -53,7 +52,11 @@ export class ToggleButton extends WithDisposable(ShadowlessElement) {
|
||||
class="toggle-icon"
|
||||
@click=${() => this.updateCollapsed(!this.collapsed)}
|
||||
>
|
||||
${toggleDown}
|
||||
${ToggleDownIcon({
|
||||
width: '16px',
|
||||
height: '16px',
|
||||
style: 'color: #77757D',
|
||||
})}
|
||||
</div>
|
||||
`;
|
||||
|
||||
@@ -64,7 +67,11 @@ export class ToggleButton extends WithDisposable(ShadowlessElement) {
|
||||
data-collapsed=${this.collapsed}
|
||||
@click=${() => this.updateCollapsed(!this.collapsed)}
|
||||
>
|
||||
${toggleRight}
|
||||
${ToggleRightIcon({
|
||||
width: '16px',
|
||||
height: '16px',
|
||||
style: 'color: #77757D',
|
||||
})}
|
||||
</div>
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user