Skip to content

Commit e1ecadd

Browse files
authored
fix: control panel icons and layout (#406)
1 parent 96ea371 commit e1ecadd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/editor/components/ControlPanel/ControlPanel.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ const ControlPanel = ({
4343

4444
return (
4545
<RadioButton.Option key={item} value={item}>
46-
<Icon className={b('icon')} width={ICON_SIZE} height={ICON_SIZE} />
46+
<span className={b('icon')}>
47+
<Icon width={ICON_SIZE} height={ICON_SIZE} />
48+
</span>
4749
</RadioButton.Option>
4850
);
4951
})}

src/editor/components/Layout/Layout.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,8 @@ $block: '.#{$ns}editor-layout';
4141
border-right: var(--editor-divider-width) solid var(--yc-color-line-generic);
4242
overflow-x: auto;
4343
}
44+
45+
&__right {
46+
width: 100%;
47+
}
4448
}

0 commit comments

Comments
 (0)