From 994cd4133a9b5ec4697d0c021f24acacbee0ce96 Mon Sep 17 00:00:00 2001 From: parisma Date: Tue, 22 Nov 2022 10:31:25 +0800 Subject: [PATCH] =?UTF-8?q?style(editor):=20=E4=BF=AE=E5=A4=8D=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=9D=97=E5=88=97=E8=A1=A8=E5=8F=B3=E4=BE=A7=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E6=A0=8F=E9=81=AE=E6=8C=A1=E4=BB=A3=E7=A0=81=E5=9D=97?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E7=9A=84=E6=A0=B7=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor/src/theme/code-block.scss | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/editor/src/theme/code-block.scss b/packages/editor/src/theme/code-block.scss index 8bb131b9..79f4b54f 100644 --- a/packages/editor/src/theme/code-block.scss +++ b/packages/editor/src/theme/code-block.scss @@ -35,9 +35,7 @@ display: flex; align-items: center; .right-tool { - position: absolute; - right: 15px; - padding-left: 5px; + width: fit-content !important; display: flex; align-items: center; .edit-icon { @@ -50,7 +48,8 @@ white-space: nowrap; text-overflow: ellipsis; padding: 10px 15px; - margin-right: 60px; + width: 0 !important; + flex: 1; } } .code-comp-map-wrapper {