Skip to content

Commit

Permalink
fix: update ui
Browse files Browse the repository at this point in the history
  • Loading branch information
wwsun committed May 24, 2024
1 parent 84bd8bf commit a36d891
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/designer/src/toolbar/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const PreviewTool = observer(() => {
designer.setActiveView('design');
}
}}
tooltip="预览"
tooltip={designer.isPreview ? '切换到设计模式' : '切换到预览模式'}
>
<EyeOutlined />
</ToggleButton>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/toggle-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const buttonStyle = css`
background-color: var(--tango-colors-custom-toolbarButtonBg, rgba(223, 223, 223, 0.08));
color: var(--tango-colors-custom-toolbarButtonTextColor, #999);
border: 0;
border-radius: var(--tango-radii-m);
border-radius: var(--tango-radii-s);
&:hover {
color: var(--tango-colors-custom-toolbarButtonTextColorHover, #fff);
Expand Down

0 comments on commit a36d891

Please sign in to comment.