pref: 内外边距外观组件优化 (#9323)

Co-authored-by: hongyang03 <hongyang03@baidu.com>
This commit is contained in:
HongYang 2024-01-05 11:39:20 +08:00 committed by GitHub
parent 2cc9865577
commit eb5299e645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 8 deletions

View File

@ -233,7 +233,7 @@ function PaddingAndMarginDialog(props: PaddingAndMarginProps) {
inheritValue={editorThemePath ? 'inherit' : ''}
placeholder={editorDefaultValue?.margin}
/>
<div className="Theme-PaddingAndMargin-input-label">Margin</div>
<div className="Theme-PaddingAndMargin-input-label"></div>
</div>
)}
{!hidePadding && (
@ -252,9 +252,7 @@ function PaddingAndMarginDialog(props: PaddingAndMarginProps) {
inheritValue={editorThemePath ? 'inherit' : ''}
placeholder={editorDefaultValue?.padding}
/>
<div className="Theme-PaddingAndMargin-input-label">
Padding
</div>
<div className="Theme-PaddingAndMargin-input-label"></div>
</div>
)}
</>

View File

@ -126,8 +126,8 @@ $bg: url('data:image/svg+xml;base64,Cjxzdmcgd2lkdGg9IjI1NnB4IiBoZWlnaHQ9IjEzMnB4
position: relative;
&::before,
&::after {
font-size: 10px;
color: #b8babf;
font-size: 12px;
color: #151b26;
font-weight: 400;
position: absolute;
transform: scale(0.8);
@ -209,14 +209,14 @@ $bg: url('data:image/svg+xml;base64,Cjxzdmcgd2lkdGg9IjI1NnB4IiBoZWlnaHQ9IjEzMnB4
}
&-custom--padding {
&::after {
content: 'Padding';
content: '内边距';
top: px2rem(28px);
left: px2rem(56px);
}
}
&-custom--margin {
&::before {
content: 'Margin';
content: '外边距';
top: 0;
left: px2rem(2px);
}