Skip to content

Commit

Permalink
smart responsive chart
Browse files Browse the repository at this point in the history
  • Loading branch information
qrohlf committed Sep 23, 2014
1 parent 7f5a34a commit 2f65a16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions app/assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ h1 {
}


#students-chart-wrapper {
max-width: 400px;
max-height: 400px;
}



/* Sticky footer styles
Expand Down
4 changes: 2 additions & 2 deletions app/views/students/index.html.haml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
- title "Student Index"
.page-header
%h1 Student Progress
.center-block.text-center
%canvas#students-chart{height: 400, width: 800}
.center-block.text-center#students-chart-wrapper
%canvas#students-chart{height: 400, width: 400}
.page-header
= link_to new_student_path, :class => 'btn btn-primary' do
%span.glyphicon.glyphicon-plus
Expand Down

0 comments on commit 2f65a16

Please sign in to comment.