Skip to content

Commit f0a0d51

Browse files
xiaojunjunxiaojunjun
authored andcommitted
Show traffic light buttons on web version and remove DEPLOYMENT.md
1 parent b45a686 commit f0a0d51

2 files changed

Lines changed: 14 additions & 108 deletions

File tree

DEPLOYMENT.md

Lines changed: 0 additions & 107 deletions
This file was deleted.

src/components/TabBar.vue

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,18 @@ const handleClose = () => {
5656
}
5757
};
5858
59+
const handleMinimize = () => {
60+
if (isWeb) {
61+
alert("This is a web demo. Please download the desktop app for full functionality.");
62+
}
63+
};
64+
65+
const handleMaximize = () => {
66+
if (isWeb) {
67+
alert("This is a web demo. Please download the desktop app for full functionality.");
68+
}
69+
};
70+
5971
// Emit events for parent communication
6072
const emit = defineEmits<{
6173
"open-settings": [];
@@ -118,7 +130,6 @@ const openSettings = () => {
118130
/>
119131
</div>
120132
<div
121-
v-if="isMac"
122133
class="traffic-light-group"
123134
@mouseenter="setAllHover"
124135
@mouseleave="setAllNormal"
@@ -142,6 +153,7 @@ const openSettings = () => {
142153
}"
143154
@mousedown="minimizeState = 'press'"
144155
@mouseup="minimizeState = 'hover'"
156+
@click="handleMinimize"
145157
tabindex="-1"
146158
role="button"
147159
aria-label="Minimize"
@@ -153,6 +165,7 @@ const openSettings = () => {
153165
}"
154166
@mousedown="maximizeState = 'press'"
155167
@mouseup="maximizeState = 'hover'"
168+
@click="handleMaximize"
156169
tabindex="-1"
157170
role="button"
158171
aria-label="Maximize"

0 commit comments

Comments
 (0)