diff --git a/packages/editor-ui/src/components/MainSidebar.vue b/packages/editor-ui/src/components/MainSidebar.vue index deff38d28d..b1be79eff9 100644 --- a/packages/editor-ui/src/components/MainSidebar.vue +++ b/packages/editor-ui/src/components/MainSidebar.vue @@ -614,7 +614,7 @@ a.logo { .gift-container { display: flex; - justify-content: end; + justify-content: flex-start; align-items: center; height: 100%; width: 100%; diff --git a/packages/editor-ui/src/components/mixins/showMessage.ts b/packages/editor-ui/src/components/mixins/showMessage.ts index 8b25664e7b..e3f0265ea1 100644 --- a/packages/editor-ui/src/components/mixins/showMessage.ts +++ b/packages/editor-ui/src/components/mixins/showMessage.ts @@ -20,8 +20,12 @@ export const showMessage = mixins(externalHooks).extend({ if (config && config.closeOnClick) { const cb = config.onClick; config.onClick = () => { - notification && notification.close(); - cb && cb(); + if (notification) { + notification.close(); + } + if (cb) { + cb(); + } }; }