diff --git a/src/assets/styles/tooltips.css b/src/assets/styles/tooltips.css
new file mode 100644
index 0000000..a79bf90
--- /dev/null
+++ b/src/assets/styles/tooltips.css
@@ -0,0 +1,15 @@
+.icon-tooltip {
+ visibility: hidden;
+ background-color: rgba(80, 103, 132, 0.85);
+ color: #fff;
+ text-align: center;
+ font-size: 11px;
+ padding: 0 6px;
+ line-height: 19px;;
+ position: fixed;
+ z-index: 5;
+ height: 19px;
+ border-radius: var(--border-radius-medium);
+ white-space: nowrap;
+ z-index: 999;
+}
\ No newline at end of file
diff --git a/src/components/svg/changeDb.vue b/src/components/svg/changeDb.vue
index 5453c41..6254f37 100644
--- a/src/components/svg/changeDb.vue
+++ b/src/components/svg/changeDb.vue
@@ -15,30 +15,18 @@
fill="#A2B1C6"
/>
-
+
Change database
@@ -50,21 +38,4 @@ export default {
.db-edit-icon:hover path {
fill: var(--color-accent);
}
-.db-edit-tooltip {
- visibility: hidden;
- background-color: rgba(80, 103, 132, 0.75);
- color: #fff;
- text-align: center;
- font-size: 11px;
- padding: 0 6px;
- line-height: 19px;;
- position: fixed;
- z-index: 5;
- height: 19px;
- left: 100px;
- top: 100px;
- border-radius: var(--border-radius-medium);
- white-space: nowrap;
- z-index: 999;
-}
diff --git a/src/components/svg/copy.vue b/src/components/svg/copy.vue
index 99440da..c31e1bd 100644
--- a/src/components/svg/copy.vue
+++ b/src/components/svg/copy.vue
@@ -1,12 +1,33 @@
-
+
+
+
+ Duplicate query
+
+
diff --git a/src/components/svg/delete.vue b/src/components/svg/delete.vue
index d5686e1..1e377f4 100644
--- a/src/components/svg/delete.vue
+++ b/src/components/svg/delete.vue
@@ -1,12 +1,33 @@
-
+
+
+
+ Delete query
+
+
diff --git a/src/components/svg/export.vue b/src/components/svg/export.vue
index 612da07..32cfe06 100644
--- a/src/components/svg/export.vue
+++ b/src/components/svg/export.vue
@@ -1,12 +1,33 @@
-
+
+
+
+ Export query to file
+
+
diff --git a/src/components/svg/rename.vue b/src/components/svg/rename.vue
index 2b643e7..3e97b69 100644
--- a/src/components/svg/rename.vue
+++ b/src/components/svg/rename.vue
@@ -1,12 +1,33 @@
-
+
+
+
+ Rename query
+
+
diff --git a/src/main.js b/src/main.js
index 29f890b..2c8b3aa 100644
--- a/src/main.js
+++ b/src/main.js
@@ -10,6 +10,7 @@ import '@/assets/styles/variables.css'
import '@/assets/styles/buttons.css'
import '@/assets/styles/tables.css'
import '@/assets/styles/dialogs.css'
+import '@/assets/styles/tooltips.css'
Vue.use(VuePlugin)
Vue.use(VModal)
diff --git a/src/mixins/tooltips.js b/src/mixins/tooltips.js
new file mode 100644
index 0000000..84e93ca
--- /dev/null
+++ b/src/mixins/tooltips.js
@@ -0,0 +1,17 @@
+export default {
+ data () {
+ return {
+ tooltipStyle: {}
+ }
+ },
+ methods: {
+ showTooltip (e) {
+ this.tooltipStyle = {
+ visibility: 'visible',
+ position: 'fixed',
+ top: e.clientY - 12 + 'px',
+ left: e.clientX + 12 + 'px'
+ }
+ }
+ }
+}
diff --git a/src/views/MyQueries.vue b/src/views/MyQueries.vue
index 0c1c40f..db3498e 100644
--- a/src/views/MyQueries.vue
+++ b/src/views/MyQueries.vue
@@ -66,7 +66,17 @@
@click="toggleRow($event, query.id)"
/>