Skip to content

Commit

Permalink
fix tooltip positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Nykiel committed Jul 22, 2021
1 parent 57d1fb8 commit 550cf7c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/components/Dropdown/DropdownCheckboxItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,13 @@
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: flex;
height: 40px;
}
.dropdown-checkbox-item.checkbox-wrapper {
display: flex;
}
.dropdown-checkbox-item:hover {
background-color: rgb(244, 245, 247);
color: rgb(23, 43, 77);
Expand Down
4 changes: 3 additions & 1 deletion src/components/Tooltip/Tooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@
this.show = false;
},
append() {
document.body.appendChild(this.$refs.popper.$el);
if (this.$refs.popper) {
document.body.appendChild(this.$refs.popper.$el);
}
}
}
};
Expand Down
5 changes: 3 additions & 2 deletions src/components/Tooltip/TooltipContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
:placement="placement"
:offset="offset"
:with-delay="withDelay">
<span class="label"
:disabled="disabled">
<span class="label">
{{ label }}
</span>
</Popper>
Expand Down Expand Up @@ -67,6 +66,8 @@
background-color: #172b4d;
border-radius: 3px;
color: #ffffff;
top: 0;
left: 0;
}
.fade-enter-active,
Expand Down

0 comments on commit 550cf7c

Please sign in to comment.