Skip to content

Commit

Permalink
fix: add a condition to to toolbar about q-electron-drag (#1487)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrkollar authored Nov 21, 2024
1 parent 607a738 commit 8a3df83
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/components/ZCLToolbar.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<template>
<q-toolbar
class="bg-glass q-electron-drag"
:class="{ 'window-button-padding-right': isElectron && isWin }"
class="bg-glass"
:class="{
'window-button-padding-right': isElectron && isWin,
' q-electron-drag': !showCreateModifyEndpoint
}"
>
<q-toolbar-title
:class="{ 'logo-margin': showPreviewTab || showNotificationTab }"
Expand Down Expand Up @@ -257,6 +260,11 @@ export default {
return this.$store.state.zap.isTutorialRunning
}
},
showCreateModifyEndpoint: {
get() {
return this.$store.state.zap.showCreateModifyEndpoint
}
},
showPreviewTab: {
get() {
return this.$store.state.zap.showPreviewTab
Expand Down
2 changes: 1 addition & 1 deletion src/components/ZclCreateModifyEndpoint.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ limitations under the License.
-->
<template>
<div>
<q-card style="min-width: 450px">
<q-card style="min-width: 450px" class="z-top">
<q-card-section>
<div
class="text-h6 flex text-align:left q-mb-sm"
Expand Down

0 comments on commit 8a3df83

Please sign in to comment.