1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Lexical: Refined editor UI

- Cleaned up dropdown lists to look integrated
- Added icons for color picker clear and menu list items
This commit is contained in:
Dan Brown
2024-09-09 14:06:41 +01:00
parent fd07aa0f05
commit fb49371c6b
9 changed files with 87 additions and 11 deletions

View File

@@ -0,0 +1,15 @@
import {EditorButton} from "../buttons";
import {el} from "../../../utils/dom";
import arrowIcon from "@icons/chevron-right.svg"
export class EditorMenuButton extends EditorButton {
protected buildDOM(): HTMLButtonElement {
const dom = super.buildDOM();
const icon = el('div', {class: 'editor-menu-button-icon'});
icon.innerHTML = arrowIcon;
dom.append(icon);
return dom;
}
}