Skip to content

Commit d777fc4

Browse files
committed
fix widget details
1 parent 54319be commit d777fc4

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

spx-gui/src/components/editor/panels/stage/StagePanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ const cssVars = getCssVars('--panel-color-', uiVariables.color.stage)
8282
.img {
8383
width: 100%;
8484
height: 40px;
85-
border-radius: 4px;
85+
border-radius: 6px;
8686
}
8787
</style>

spx-gui/src/components/editor/stage/widget/WidgetsEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function handleSelect(widget: Widget) {
5050
stage.value.selectWidget(widget.id)
5151
}
5252
53-
const addMonitor = useAddMonitor()
53+
const addMonitor = useAddMonitor(true)
5454
5555
const handleAddMonitor = useMessageHandle(() => addMonitor(editorCtx.project), {
5656
en: 'Failed to add widget',

spx-gui/src/models/stage.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ export class Stage extends Disposable {
114114
if (!this.widgetsZorder.includes(widget.id)) {
115115
this.widgetsZorder = [...this.widgetsZorder, widget.id]
116116
}
117-
this.autoSelectWidget()
118117
}
119118
removeWidget(id: string): void {
120119
const idx = this.widgets.findIndex((s) => s.id === id)

0 commit comments

Comments
 (0)