visgraph: give more space to graph in twig content

This commit is contained in:
Mathieu Jaumotte 2021-11-03 12:39:47 +01:00
parent 6e3cdb6f58
commit 2d3549ee28
2 changed files with 16 additions and 3 deletions

View File

@ -1,7 +1,8 @@
<template>
<!-- TEST appelle la fonction sans passer par le callback de vis-network -->
<!-- TEST appelle la fonction sans passer par le callback de vis-network
<button class="btn btn-sm btn-create" @click="addRelationshipModal({ from: 'person_1617', to: 'person_1614' })">add link</button>
-->
<!--// <=== InternalError: too much recursion -->
<div id="visgraph"></div>

View File

@ -2,12 +2,24 @@
{% block title 'household.Relationship'|trans %}
{% block content %}
<h1>{{ block('title') }}</h1>
{#
Give more space to graph:
* use parent twig block (layout_wvm_content)
* hide title (d-none)
* apply negative margin-top
#}
{% block layout_wvm_content %}
<div class="row justify-content-center">
<div class="col-md-10 col-xxl d-none">
<h1>{{ block('title') }}</h1>
</div>
<div id="relationship-graph"
style="margin-top: -3rem"
data-persons="{{ persons|e('html_attr') }}">
</div>
</div>
{% endblock %}
{% block block_post_menu %}