From 7f95450e67ed0f6e9d1ecd718b3ac2382350a59a Mon Sep 17 00:00:00 2001 From: mabasian <54101509+mabasian@users.noreply.github.com> Date: Thu, 17 Aug 2023 09:53:06 +0200 Subject: [PATCH] fix the tooltip positions (#1411) --- .../components/UI/the-control/SyncStatus.vue | 37 ++----------------- .../UI/the-control/TooltipDialog.vue | 13 +++++-- 2 files changed, 14 insertions(+), 36 deletions(-) diff --git a/launcher/src/components/UI/the-control/SyncStatus.vue b/launcher/src/components/UI/the-control/SyncStatus.vue index e12b44a5c..36a03d5e3 100644 --- a/launcher/src/components/UI/the-control/SyncStatus.vue +++ b/launcher/src/components/UI/the-control/SyncStatus.vue @@ -459,14 +459,14 @@ export default { .executionIconCons { position: absolute; width: 54%; - left: 23%; - top: 31.5%; + left: 22.7%; + top: 24.6%; } .consensusIconCons { position: absolute; width: 54%; - left: 23%; - top: 31.5%; + left: 22.9%; + top: 24.6%; } .consensusPer { position: absolute; @@ -484,7 +484,6 @@ export default { display: flex; justify-content: center; align-items: center; - margin-top: 7%; } .syncStatusStatus { width: 100%; @@ -498,34 +497,6 @@ export default { position: absolute; bottom: 0; } -[data-tooltip] { - position: relative; - cursor: default; -} -[data-tooltip]::after { - position: absolute; - width: max-content; - left: -300%; - text-align: center; - content: attr(data-tooltip); - background: black; - border-radius: 5px; - font-size: 70%; - padding: 8% 20%; - border: 1px solid #929292; - text-transform: uppercase; - visibility: hidden; - opacity: 0; - transform: translateY(-320%); - transition: opacity 0.3s transform 0.2s; - font-weight: 600; -} -[data-tooltip]:hover::after { - opacity: 1; - visibility: visible; - transform: rotateY(50%); -} - .pageNumber { display: flex; justify-content: center; diff --git a/launcher/src/components/UI/the-control/TooltipDialog.vue b/launcher/src/components/UI/the-control/TooltipDialog.vue index b6468bfea..4ddb69af5 100644 --- a/launcher/src/components/UI/the-control/TooltipDialog.vue +++ b/launcher/src/components/UI/the-control/TooltipDialog.vue @@ -1,5 +1,5 @@