mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-12-02 21:00:02 -05:00
improve ui tooltip ui
This commit is contained in:
parent
14d9aab28c
commit
70a78399b5
1 changed files with 11 additions and 1 deletions
|
|
@ -2,8 +2,15 @@
|
|||
<div id="network"></div>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.vis-tooltip {
|
||||
color: white !important;
|
||||
background: rgba(0, 0, 0, 0.75) !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import "vis-network/styles/vis-network.min.css";
|
||||
import "vis-network/styles/vis-network.css";
|
||||
import { Network } from "vis-network";
|
||||
import Utils from "../../js/Utils";
|
||||
export default {
|
||||
|
|
@ -219,6 +226,9 @@ export default {
|
|||
nodes: nodes,
|
||||
edges: edges,
|
||||
}, {
|
||||
interaction: {
|
||||
tooltipDelay: 0, // show tooltip instantly on hover
|
||||
},
|
||||
layout: {
|
||||
// always layout nodes the same way across reloads if nothing changed
|
||||
randomSeed: 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue