Explorar el Código

:recycle: fixing up context menu button

tags/0.0.2^2
j hace 3 años
padre
commit
b1da0d83cf

+ 9
- 10
frontend/src/components/PairsList.vue Ver fichero

@@ -15,19 +15,20 @@ section.pairs-list
15 15
                 .idCard
16 16
                     h3 {{ pair.profile.name }} {{ pair.profile.pid }}
17 17
                     p registered nurse
18
-        
19
-            w-menu(shadow v-model="showMenu")
18
+
19
+            w-menu(align-left arrow shadow v-model='showMenu')
20 20
                 template(#activator)
21
-                    w-button.mr3(@click="showMenu = true") menu
22
-                w-flex.pl10.mt4(wrap justify-end)
23
-                    w-button.mr1(text color="green" @click="showMenu = false") Chat
24
-                    w-button.mr1(text color="green" @click="showMenu = false") Calendar
25
-                    w-button(text color="green" @click="showMenu = false") cancel
21
+                    w-button.mr3(@click='showMenu = !showMenu') menu
22
+                w-flex.pl10.mt4(justify-end wrap)
23
+                    w-button.mr1(@click='showMenu = false' color='green' text) Chat
24
+                    w-button.mr1(@click='showMenu = false' color='green' text) Calendar
25
+                    w-button(@click='showMenu = false' color='green' text) cancel
26 26
 
27 27
     p(v-else) No {{ tabName }} profiles.
28 28
 </template>
29 29
 
30 30
 <script setup>
31
+import { ref } from 'vue'
31 32
 const props = defineProps({
32 33
     pairs: {
33 34
         type: [Object, Array],
@@ -38,9 +39,7 @@ const props = defineProps({
38 39
         default: 'paired',
39 40
     },
40 41
 })
41
-
42
-
43
-
42
+const showMenu = ref(false)
44 43
 </script>
45 44
 
46 45
 <style lang="sass">

+ 1
- 6
frontend/src/components/ProfileCardList.vue Ver fichero

@@ -1,13 +1,8 @@
1 1
 <template lang="pug">
2 2
 section.profile-card-list.xs12.w-flex.column
3 3
     header.xs12.w-flex 
4
-<<<<<<< HEAD
5
-        w-select(:items='["one", "two", "three"]' outline) Label
6
-
7
-=======
8 4
         //- w-select(:items="['one', 'two', 'three']" outline) Label
9
-    
10
->>>>>>> 8afdd6e (:sparkles: pairs card default style implemented)
5
+
11 6
     article
12 7
         ProfileCard.match-layout(
13 8
             :aspects='aspects'

+ 6
- 5
frontend/src/views/PairsView.vue Ver fichero

@@ -89,11 +89,12 @@ export default {
89 89
     display: flex
90 90
     justify-content: space-between
91 91
     margin: 0 25px
92
-    > div
93
-        width: 100%
94
-        text-align: center
95
-        font-size: 16px
96
-        line-height: 40px
92
+
93
+.select--matches > div
94
+    width: 100%
95
+    text-align: center
96
+    font-size: 16px
97
+    line-height: 40px
97 98
 .active
98 99
     border-bottom: 3px solid #f2cd5c
99 100
     color: #f2cd5c

Loading…
Cancelar
Guardar