From 706d53409cb730a49a430bf9b896503a83db2d87 Mon Sep 17 00:00:00 2001 From: Zhilin Liu Date: Wed, 10 Jan 2024 15:49:21 +0800 Subject: [PATCH] feat: ToolBar UI improvement (#49) --- .../ToolBar/components/Home/FontStyle.vue | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/UserInterface/ToolBar/components/Home/FontStyle.vue b/src/UserInterface/ToolBar/components/Home/FontStyle.vue index 121158e..91744dc 100644 --- a/src/UserInterface/ToolBar/components/Home/FontStyle.vue +++ b/src/UserInterface/ToolBar/components/Home/FontStyle.vue @@ -22,6 +22,9 @@ import { FONT_SIZE_RANGE, } from '@Const/index' +const buttonStyle = 'menu-btn w-[40px] h-[30px]' +const activeButtonStyle = 'border border-black bg-gray-200' + const format = (name: AttributeName, value: AttributeValue) => { selectionBlk.blocks.forEach((block) => { const controller = block.getController() @@ -89,36 +92,36 @@ richTextObserver.on(async (newState) => {