Commit dfe9f3674c6e91f34fa6c63f474ff2cc7e8ed535

Authored by randx
1 parent 39ea486e

fix image width for markdown

app/assets/stylesheets/common.scss
@@ -11,6 +11,7 @@ a { @@ -11,6 +11,7 @@ a {
11 } 11 }
12 } 12 }
13 13
  14 +
14 .btn { 15 .btn {
15 background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f1f1f1), color-stop(25%, #f1f1f1), to(#e6e6e6)); 16 background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f1f1f1), color-stop(25%, #f1f1f1), to(#e6e6e6));
16 background-image: -webkit-linear-gradient(#f1f1f1, #f1f1f1 25%, #e6e6e6); 17 background-image: -webkit-linear-gradient(#f1f1f1, #f1f1f1 25%, #e6e6e6);
@@ -1016,6 +1017,8 @@ p.time { @@ -1016,6 +1017,8 @@ p.time {
1016 @extend .prepend-top-20; 1017 @extend .prepend-top-20;
1017 @extend .append-bottom-20; 1018 @extend .append-bottom-20;
1018 1019
  1020 + img { max-width: 100%; }
  1021 +
1019 pre { 1022 pre {
1020 background: white !important; 1023 background: white !important;
1021 1024
@@ -1111,6 +1114,7 @@ p.time { @@ -1111,6 +1114,7 @@ p.time {
1111 1114
1112 // Fix issue with notes & lists creating a bunch of bottom borders. 1115 // Fix issue with notes & lists creating a bunch of bottom borders.
1113 li.note { 1116 li.note {
  1117 + img { max-width:100% }
1114 .note-title { 1118 .note-title {
1115 li { 1119 li {
1116 border-bottom:none !important; 1120 border-bottom:none !important;
@@ -1121,3 +1125,9 @@ li.note { @@ -1121,3 +1125,9 @@ li.note {
1121 } 1125 }
1122 } 1126 }
1123 } 1127 }
  1128 +
  1129 +.markdown {
  1130 + img {
  1131 + max-width:100%;
  1132 + }
  1133 +}
app/views/projects/show.html.haml
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 = text_field_tag :project_clone, @project.url_to_repo, :class => "xlarge one_click_select git_clone_url" 21 = text_field_tag :project_clone, @project.url_to_repo, :class => "xlarge one_click_select git_clone_url"
22 22
23 - if @project.description.present? 23 - if @project.description.present?
24 - .prettyprint= markdown @project.description 24 + .markdown.prettyprint= markdown @project.description
25 - unless @events.blank? 25 - unless @events.blank?
26 %br 26 %br
27 %h5.cgray 27 %h5.cgray