Skip to content

Commit

Permalink
Merge pull request #161 from chinyihan/Icon_Bug
Browse files Browse the repository at this point in the history
Solved icon bug
  • Loading branch information
nicolaisi authored Jun 24, 2024
2 parents 4bbfe32 + 92f9b25 commit ae26556
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blueprint/designer.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
<div id='{{ key }}' class='varbox' data-type="{{ data['style'][key]['type'] }}" data-onCondition="{{ data['style'][key]['div']['data-onCondition'] }}" data-link-adei="{{ data['style'][key]['div']['data-link-adei'] }}" data-trend="{{ data['style'][key]['div']['data-trend'] }}"
style='position: absolute; top:{{ data['style'][key]['top'] }}; left:{{ data['style'][key]['left'] }};
icon-type:{{ data['style'][key]['icon-type'] }}; rotate:{{ data['style'][key]['div']['rotate'] }};'>
<img width='100%' height='100%' src="{{ static_url( data['style'][key]['icon-type'] + '_inactive.png' ) }}"></img>
<img width='{{ data['style'][key]['width'] }}' height='{{ data['style'][key]['height'] }}' src="{{ static_url( data['style'][key]['icon-type'] + '_inactive.png' ) }}"></img>
</div>
{% else %}
{% end %}
Expand Down
2 changes: 1 addition & 1 deletion template/icon.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div id='{{ key }}' onclick="open_adei_page('{{ key }}')" class="databox" tooltip="" data-icon-type="{{ data['style'][key]['icon-type'] }}" data-query="{{ data['varname'][key]['url'] }}" data-type="{{ data['style'][key]['type'] }}" data-onCondition="{{ data['style'][key]['div']['data-onCondition'] }}" data-link-adei="{{ data['style'][key]['div']['data-link-adei'] }}" data-trend="{{ data['style'][key]['div']['data-trend'] }}"
style='position: absolute; top:{{ data['style'][key]['top'] }}; left:{{ data['style'][key]['left'] }};
icon-type:{{ data['style'][key]['icon-type'] }};'>
<img width='100%' height='100%' style='rotate:{{ data['style'][key]['div']['rotate'] }}' src="{{ static_url( data['style'][key]['icon-type'] + '_inactive.png' ) }}"></img>
<img width='{{ data['style'][key]['width'] }}' height='{{ data['style'][key]['height'] }}' style='rotate:{{ data['style'][key]['div']['rotate'] }}' src="{{ static_url( data['style'][key]['icon-type'] + '_inactive.png' ) }}"></img>
</div>
{% else %}
{% end %}

0 comments on commit ae26556

Please sign in to comment.