Skip to content

Commit

Permalink
[chores] Show tooltip on narrow screens
Browse files Browse the repository at this point in the history
  • Loading branch information
totallynotvaishnav committed Aug 18, 2022
1 parent 0bbfbed commit e6f11e3
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 121 deletions.
2 changes: 1 addition & 1 deletion dist/netjsongraph.min.js

Large diffs are not rendered by default.

21 changes: 0 additions & 21 deletions examples/netjsonmap-indoormap.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,27 +65,6 @@
},
baseOptions: {
media: [
{
query: {
minWidth: 320,
maxWidth: 850,
},
option: {
tooltip: {
show: false,
},
},
},
{
query: {
minWidth: 851,
},
option: {
tooltip: {
show: true,
},
},
},
{
query: {
minWidth: 320,
Expand Down
12 changes: 1 addition & 11 deletions src/css/netjsongraph.css
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,7 @@ p {

.njg-tooltip {
user-select: text !important;
}

.njg-tooltip #closeButton {
display: none;
z-index: 1000 !important;
}

.njg-tooltip-item {
Expand Down Expand Up @@ -370,13 +367,6 @@ p {
width: 100%;
}

.njg-tooltip #closeButton {
display: block;
width: 100%;
text-align: end;
font-size: 16px;
}

.sideBarHandle {
display: none;
}
Expand Down
44 changes: 0 additions & 44 deletions src/js/netjsongraph.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,27 +129,6 @@ const NetJSONGraphDefaultConfig = {
},
},
},
{
query: {
minWidth: 320,
maxWidth: 850,
},
option: {
tooltip: {
show: false,
},
},
},
{
query: {
minWidth: 851,
},
option: {
tooltip: {
show: true,
},
},
},
],
},
},
Expand Down Expand Up @@ -187,29 +166,6 @@ const NetJSONGraphDefaultConfig = {
toolbox: {
show: false,
},
media: [
{
query: {
minWidth: 320,
maxWidth: 850,
},
option: {
tooltip: {
show: false,
},
},
},
{
query: {
minWidth: 851,
},
option: {
tooltip: {
show: true,
},
},
},
],
},
},
mapTileConfig: [
Expand Down
44 changes: 0 additions & 44 deletions test/netjsongraph.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,27 +96,6 @@ describe("NetJSONGraph Specification", () => {
},
},
},
{
query: {
minWidth: 320,
maxWidth: 850,
},
option: {
tooltip: {
show: false,
},
},
},
{
query: {
minWidth: 851,
},
option: {
tooltip: {
show: true,
},
},
},
],
},
};
Expand Down Expand Up @@ -153,29 +132,6 @@ describe("NetJSONGraph Specification", () => {
toolbox: {
show: false,
},
media: [
{
query: {
minWidth: 320,
maxWidth: 850,
},
option: {
tooltip: {
show: false,
},
},
},
{
query: {
minWidth: 851,
},
option: {
tooltip: {
show: true,
},
},
},
],
},
};

Expand Down

0 comments on commit e6f11e3

Please sign in to comment.