-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathActionBar.vue
More file actions
72 lines (58 loc) · 1.28 KB
/
ActionBar.vue
File metadata and controls
72 lines (58 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<script setup>
/**
* UI
*/
import Button from "@/components/ui/Button.vue"
/** Components */
import Search from "@/components/modules/navigation/Search.vue"
/** Utils */
import { isMobile } from "@/services/utils"
/** Store */
import { useAppStore } from "@/store/app.store"
const appStore = useAppStore()
</script>
<template>
<Flex wide align="center" justify="between" gap="24" :class="$style.wrapper">
<Flex wide align="center" gap="12">
<Button
v-if="isMobile()"
@click="appStore.showSidebar = !appStore.showSidebar"
type="secondary"
size="medium"
:class="$style.menu_btn"
>
<Icon name="menu" size="16" color="primary" />
</Button>
<Search />
</Flex>
<Flex align="center" gap="12">
<Button @click="appStore.showCmd = true" type="secondary" size="mini">
<Icon name="terminal_square" size="16" color="secondary" />
</Button>
<div style="width: 2px; height: 16px; background: var(--op-10)" />
<Connection :class="$style.connection_btn" />
<Auth />
</Flex>
</Flex>
</template>
<style module>
.wrapper {
padding: 12px 24px;
}
.menu_btn {
display: none;
}
@media (max-width: 1300px) {
.menu_btn {
display: flex;
}
}
@media (max-width: 500px) {
.wrapper {
padding: 12px;
}
.connection_btn {
display: none;
}
}
</style>