fixes #853
This commit is contained in:
@@ -14,7 +14,7 @@ div#note-container {
|
|||||||
z-index: 1500;
|
z-index: 1500;
|
||||||
overflow: auto;
|
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;
|
line-height: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -179,11 +179,13 @@ class Upload < ActiveRecord::Base
|
|||||||
|
|
||||||
def add_dimension_tags!
|
def add_dimension_tags!
|
||||||
if image_width >= 10_000 || image_height >= 10_000
|
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
|
elsif image_width >= 3200 || image_height >= 2400
|
||||||
self.tag_string = "#{tag_string} absurdres".strip
|
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
|
self.tag_string = "#{tag_string} highres".strip
|
||||||
|
elsif image_width <= 500 && image_height <= 500
|
||||||
|
self.tag_string = "#{tag_string} lowres".strip
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user