Explorar el Código

Note section - left nav - male whole item clickable

Vijayakrishnan Krishnan hace 4 años
padre
commit
16c218fba3
Se han modificado 1 ficheros con 17 adiciones y 8 borrados
  1. 17 8
      resources/views/app/patient/note/dashboard.blade.php

+ 17 - 8
resources/views/app/patient/note/dashboard.blade.php

@@ -631,20 +631,29 @@
         <div class="border-top py-1">
             <div v-for="section in sections"
                  v-show="section.title.toLowerCase().indexOf(q.toLowerCase()) !== -1">
-                <div class="d-flex pr-1 align-items-center note-widget-item">
-                    <span class="mx-2" v-show="section.used">
-                        <a class="font-12 text-secondary" href="#"
-                           v-on:click.prevent="remove(section.section_uid)">
+                <div class="d-flex pr-1 align-items-center note-widget-item c-pointer"
+                     :title="section.title + ' - Click to remove'"
+                     v-if="section.used"
+                     v-on:click.prevent="remove(section.section_uid)">
+                    <span class="mx-2">
+                        <a class="font-12 text-secondary" href="#">
                             <i class="fa fa-minus-circle"></i>
                         </a>
                     </span>
-                    <span class="mx-2" v-show="!section.used">
-                        <a class="font-12" href="#"
-                           v-on:click.prevent="add(section.uid)">
+                    <span class="font-smaller text-ellipsis">
+                        @{{section.title}}
+                    </span>
+                </div>
+                <div class="d-flex pr-1 align-items-center note-widget-item c-pointer"
+                     :title="section.title + ' - Click to add'"
+                     v-if="!section.used"
+                     v-on:click.prevent="add(section.uid)">
+                    <span class="mx-2">
+                        <a class="font-12" href="#">
                             <i class="fa fa-plus-circle"></i>
                         </a>
                     </span>
-                    <span class="font-smaller text-ellipsis c-pointer" :title="section.title">
+                    <span class="font-smaller text-ellipsis">
                         @{{section.title}}
                     </span>
                 </div>