Skip to content

Commit

Permalink
Fix tooltip show and hide instantly
Browse files Browse the repository at this point in the history
  • Loading branch information
ganlvtech committed Nov 1, 2018
1 parent f99443a commit 18b8084
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/FilePath.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@
this.$nextTick(() => {
$('.tooltip').remove();
$(this.$el).find('[data-tooltip="toggle"]').tooltip({
placement: 'bottom'
placement: 'bottom',
container: 'body',
boundary: 'window'
});
});
}
Expand Down
4 changes: 3 additions & 1 deletion src/components/FileTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@
this.$nextTick(() => {
$('.tooltip').remove();
$(this.$el).find('[data-tooltip="toggle"]').tooltip({
placement: 'bottom'
placement: 'auto',
container: 'body',
boundary: 'window'
});
});
}
Expand Down
1 change: 1 addition & 0 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ html {

body {
background-color: #fafafa;
overflow-x: hidden;
}

.no-select {
Expand Down

0 comments on commit 18b8084

Please sign in to comment.