Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Knowledge Space WP Plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alg
Knowledge Space WP Plugin
Commits
dfe7a77d
"...knowledge-space-wp-plugin.git" did not exist on "9aad12f11d45849a66b42a475c560544c55028da"
Commit
dfe7a77d
authored
3 years ago
by
Harm Kube
Browse files
Options
Downloads
Patches
Plain Diff
Marker to indicate status of collapsible
parent
cd7f8169
No related branches found
No related tags found
No related merge requests found
Pipeline
#54284
passed
3 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
display/display.css
+18
-0
18 additions, 0 deletions
display/display.css
display/overlays/neighbors.js
+18
-0
18 additions, 0 deletions
display/overlays/neighbors.js
with
36 additions
and
0 deletions
display/display.css
+
18
−
0
View file @
dfe7a77d
...
...
@@ -334,3 +334,21 @@
bottom
:
0
;
left
:
0
;
}
.open-status-marker
{
position
:
absolute
;
right
:
20px
;
font-size
:
26px
;
color
:
#595858
;
top
:
2px
;
bottom
:
2px
;
}
.open-status-marker-tab
{
position
:
absolute
;
right
:
20px
;
font-size
:
15px
;
color
:
#595858
;
top
:
10px
;
bottom
:
10px
;
}
This diff is collapsed.
Click to expand it.
display/overlays/neighbors.js
+
18
−
0
View file @
dfe7a77d
...
...
@@ -49,13 +49,23 @@ class NodeNeighborOverlay {
);
this
.
contentTab
=
contentTabs
;
contentTabs
.
style
.
display
=
"
flex
"
;
const
openMarker
=
Helpers
.
createDiv
(
"
open-status-marker
"
,
coll
);
openMarker
.
innerText
=
'
-
'
;
coll
.
addEventListener
(
"
click
"
,
function
()
{
if
(
contentTabs
.
style
.
display
===
"
flex
"
)
{
contentTabs
.
style
.
display
=
"
none
"
;
openMarker
.
innerText
=
'
+
'
;
}
else
{
contentTabs
.
style
.
display
=
"
flex
"
;
openMarker
.
innerText
=
'
-
'
;
}
});
const
colors
=
this
.
type
===
"
link
"
?
this
.
graph
.
edgeColors
...
...
@@ -79,6 +89,12 @@ class NodeNeighborOverlay {
collTabMarker
.
style
.
borderColor
=
color
;
collTabMarker
.
style
.
backgroundColor
=
color
;
const
openMarkerTabs
=
Helpers
.
createDiv
(
"
open-status-marker-tab
"
,
collTab
);
openMarkerTabs
.
innerText
=
'
+
'
;
// Content of the different tabs
const
collTabContent
=
Helpers
.
createDiv
(
"
neighbor-content-links
"
,
...
...
@@ -89,8 +105,10 @@ class NodeNeighborOverlay {
collTab
.
addEventListener
(
"
click
"
,
function
()
{
if
(
collTabContent
.
style
.
display
===
"
flex
"
)
{
collTabContent
.
style
.
display
=
"
none
"
;
openMarkerTabs
.
innerText
=
'
+
'
;
}
else
{
collTabContent
.
style
.
display
=
"
flex
"
;
openMarkerTabs
.
innerText
=
'
-
'
;
}
});
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment