Skip to content

Commit

Permalink
Don't hide ISA graph when viewing project overview on small screens. F…
Browse files Browse the repository at this point in the history
…ixes #2059
  • Loading branch information
fbacall committed Nov 13, 2024
1 parent 699ff52 commit c7ef2aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions app/views/general/_isa_graph.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
only_tree ||= false
view = params[:graph_view] || default_view
is_full_screen = params.key?(:fullscreen).present?
standalone ||= false
%>

<style>
Expand All @@ -27,9 +28,9 @@
}
</style>

<div style="float:right" class="hidden-xs"><%= help_link :isa_overview, include_icon: true, link_text:'Help' %></div>
<div style="float:right" class="<%= standalone ? '' : ' hidden-xs' %>"><%= help_link :isa_overview, include_icon: true, link_text:'Help' %></div>
<div class="row">
<div class="col-sm-12 hidden-xs">
<div class="col-sm-12<%= standalone ? '' : ' hidden-xs' %>">
<div id="isa-graph" class="panel panel-default">
<div id="node_info"></div>
<div class="isa-controls">
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/overview.html.erb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<%= render partial: 'general/isa_graph', locals: { root_item: @project, deep: true, include_parents: true, only_tree: true } %>
<%= render partial: 'general/isa_graph', locals: { root_item: @project, deep: true, include_parents: true, only_tree: true, standalone: true } %>

0 comments on commit c7ef2aa

Please sign in to comment.