Skip to content

Commit

Permalink
Merge pull request #98 from neuroglia-io/style-dagre-svg-definitions
Browse files Browse the repository at this point in the history
Prevented the svg definitions block from taking up space in Neuroglia.Blazor.Dagre
  • Loading branch information
cdavernas authored Jul 8, 2024
2 parents 989d544 + f888e37 commit 98115b9
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Neuroglia.Blazor.Dagre/DagreGraph.razor
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@implements IDisposable

@if (graph != null) {
<svg id="svg-definitions"
<svg class="svg-definitions"
version="1.2"
baseProfile="tiny"
xmlns="http://www.w3.org/2000/svg"
Expand Down
12 changes: 11 additions & 1 deletion src/Neuroglia.Blazor.Dagre/wwwroot/neuroglia-blazor-dagre.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
.graph-container {
.svg-definitions {
width: 0 !important;
height: 0 !important;
margin: 0 !important;
padding: 0 !important;
position: absolute;
top: -100px;
left: -100px;
}

.graph-container {
width: 100%;
height: 100%;
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion src/Neuroglia.Blazor.Dagre/wwwroot/neuroglia-blazor-dagre.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
.graph-container {
.svg-definitions {
width: 0 !important;
height: 0 !important;
margin: 0 !important;
padding: 0 !important;
position: absolute;
top: -100px;
left: -100px;
}

.graph-container {
width: 100%;
height: 100%;
}
Expand Down

0 comments on commit 98115b9

Please sign in to comment.