This commit is contained in:
albert
2013-03-12 13:29:08 -04:00
parent ef08a3777d
commit d551cc7aba
2 changed files with 5 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ div#note-container {
z-index: 1500;
overflow: auto;
h1, h2, h3, h4, h5, h6, a, span, div, blockquote, br, p, ul, li, ol, em, strong, small, big, b, i, font, u, s {
h1, h2, h3, h4, h5, h6, a, span, div, blockquote, br, p, ul, li, ol, em, strong, small, big, b, i, font, u, s, code, center {
line-height: normal;
}

View File

@@ -179,11 +179,13 @@ class Upload < ActiveRecord::Base
def add_dimension_tags!
if image_width >= 10_000 || image_height >= 10_000
self.tag_string = "#{tag_string} insanely_absurdres".strip
self.tag_string = "#{tag_string} incredibly_absurdres".strip
elsif image_width >= 3200 || image_height >= 2400
self.tag_string = "#{tag_string} absurdres".strip
elsif image_width >= 1600 && image_height >= 1200
elsif image_width >= 1600 || image_height >= 1200
self.tag_string = "#{tag_string} highres".strip
elsif image_width <= 500 && image_height <= 500
self.tag_string = "#{tag_string} lowres".strip
end
end