Skip to content

Commit 8a3df83

Browse files
authored
fix: add a condition to to toolbar about q-electron-drag (#1487)
1 parent 607a738 commit 8a3df83

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/components/ZCLToolbar.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<template>
22
<q-toolbar
3-
class="bg-glass q-electron-drag"
4-
:class="{ 'window-button-padding-right': isElectron && isWin }"
3+
class="bg-glass"
4+
:class="{
5+
'window-button-padding-right': isElectron && isWin,
6+
' q-electron-drag': !showCreateModifyEndpoint
7+
}"
58
>
69
<q-toolbar-title
710
:class="{ 'logo-margin': showPreviewTab || showNotificationTab }"
@@ -257,6 +260,11 @@ export default {
257260
return this.$store.state.zap.isTutorialRunning
258261
}
259262
},
263+
showCreateModifyEndpoint: {
264+
get() {
265+
return this.$store.state.zap.showCreateModifyEndpoint
266+
}
267+
},
260268
showPreviewTab: {
261269
get() {
262270
return this.$store.state.zap.showPreviewTab

src/components/ZclCreateModifyEndpoint.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ limitations under the License.
1515
-->
1616
<template>
1717
<div>
18-
<q-card style="min-width: 450px">
18+
<q-card style="min-width: 450px" class="z-top">
1919
<q-card-section>
2020
<div
2121
class="text-h6 flex text-align:left q-mb-sm"

0 commit comments

Comments
 (0)