Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't hide ISA graph when viewing project overview on small screens #2061

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 } %>