Skip to content

Commit

Permalink
Merge pull request #2061 from seek4science/issue-2059
Browse files Browse the repository at this point in the history
Don't hide ISA graph when viewing project overview on small screens
  • Loading branch information
fbacall authored Nov 14, 2024
2 parents 96a68df + c7ef2aa commit 3042da0
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 3042da0

Please sign in to comment.