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
c4b3d738
Commit
c4b3d738
authored
3 years ago
by
Harm Kube
Browse files
Options
Downloads
Patches
Plain Diff
Added some TODO's and first styling ideas for category marker
parent
5e551d2f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#52891
passed
3 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
display/display.css
+17
-3
17 additions, 3 deletions
display/display.css
display/overlays/neighbors.js
+6
-0
6 additions, 0 deletions
display/overlays/neighbors.js
with
23 additions
and
3 deletions
display/display.css
+
17
−
3
View file @
c4b3d738
...
...
@@ -279,9 +279,9 @@
background-color
:
#eee
;
color
:
#444
;
cursor
:
pointer
;
padding
:
18
px
;
padding
:
9
px
;
width
:
100%
;
border
:
none
;
border
:
1px
solid
grey
;
text-align
:
left
;
outline
:
none
;
font-size
:
15px
;
...
...
@@ -305,6 +305,20 @@
padding
:
0
18px
;
display
:
none
;
overflow
:
hidden
;
background-color
:
#
f1f1f1
;
background-color
:
#
000000
;
flex-direction
:
row
;
}
.category-div
{
padding
:
0
;
background-color
:
#000000
;
color
:
#444
;
cursor
:
pointer
;
width
:
5%
;
height
:
100%
;
border
:
none
;
outline
:
none
;
float
:
left
;
display
:
flex
;
flex-direction
:
column
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
display/overlays/neighbors.js
+
6
−
0
View file @
c4b3d738
...
...
@@ -37,6 +37,7 @@ class NodeNeighborOverlay {
);
coll
.
className
=
"
collapsible
"
;
coll
.
innerText
=
"
Nachbarn
"
;
// TODO: Scrolling wheel for content
var
contentTabs
=
Helpers
.
createDiv
(
"
neighbor-content-tabs
"
,
bottomContainerDiv
...
...
@@ -55,6 +56,8 @@ class NodeNeighborOverlay {
:
this
.
graph
.
nodeColors
;
// TODO: Colors only fill little part of div
for
(
const
[
cls
,
color
]
of
Object
.
entries
(
colors
))
{
const
collTab
=
Helpers
.
createDiv
(
"
button
"
,
contentTabs
...
...
@@ -64,6 +67,8 @@ class NodeNeighborOverlay {
collTab
.
style
.
backgroundColor
=
color
;
collTab
.
type
=
cls
;
this
.
tabNavHandles
[
cls
]
=
collTab
;
const
collTabContent
=
Helpers
.
createDiv
(
"
neighbor-content-links
"
,
contentTabs
...
...
@@ -126,6 +131,7 @@ class NodeNeighborOverlay {
* @param node
*/
updateTabs
(
node
)
{
//TODO: Hide all categories that do not have any links
this
.
clearTabContentPages
();
if
(
this
.
contentTab
.
style
.
display
===
"
flex
"
)
{
this
.
contentTab
.
style
.
display
=
"
none
"
;
...
...
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