From 4fc196fb71b7562846f342e3de8ed3af4b0ddb78 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 29 Aug 2012 17:36:12 +0800 Subject: [PATCH] resize thumbnails --- .../gallery/app/assets/javascripts/galleryAPI.js.erb | 4 ++-- .../gallery/app/assets/stylesheets/gallery.css | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI.js.erb b/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI.js.erb index f25e4d9f..57d13bc5 100644 --- a/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI.js.erb +++ b/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI.js.erb @@ -124,9 +124,9 @@ var galleryAPI = function(){ $.each(categories,function(x,category){ $.each(category,function(i,album){ if(album.cover == "default") - var $img = $("
"+album.name+""+album.category_name+"
"); + var $img = $("
"+album.name+""+album.category_name+"
"); else - var $img = $("
"+album.name+""+album.category_name+"
"); + var $img = $("
"+album.name+""+album.category_name+"
"); var tag_string = ""; for(tag in album.tag_names){ tag_string+= '' + album.tag_names[tag] + ''; diff --git a/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css b/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css index 045e1bc2..21475b7a 100755 --- a/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css +++ b/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css @@ -16,7 +16,7 @@ } .rg a:hover { } -.rg img { display: block; border: none; width: 120px; height: 90px; } +.rg img { display: block; border: none;} .rgmask { background: #000; width: 100%; position: fixed; top: 0; left: 0; }