Skip to content

Commit

Permalink
better size
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Jun 16, 2024
1 parent 120b206 commit 883f96d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/training/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
{% for subsection in section.subsections %}
{% set subsection = get_section(path=subsection) %}
{% set parent_index = loop.index %}

{% set container_height = subsection.pages | length * 50 %}
{
id: '{{parent_index}}',
data: { label: '{{subsection.title}}' },
position: { x: {{loop.index0 * 250 + 50}}, y: 100 },
className: 'light',
style: { backgroundColor: 'rgba(255, 0, 0, 0.2)', width: 200, height: {{subsection.pages | length * 10 + 50}} },
style: { backgroundColor: 'rgba(255, 0, 0, 0.2)', width: 200, height: {{ container_height + 50 }}},
},
{% for page in subsection.pages %}

Expand Down

0 comments on commit 883f96d

Please sign in to comment.