Commit d5b85e0c249439764be01ebcecf38d0d99920baa
1 parent
b8cbcf15
All images are of different size so created a class to make all of them in same size.
Showing
3 changed files
with
18 additions
and
2 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/TinyViewListController.js
@@ -33,9 +33,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, Module | @@ -33,9 +33,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, Module | ||
33 | angular.forEach($scope.data, function (value, key) { | 33 | angular.forEach($scope.data, function (value, key) { |
34 | $scope.imagePath = "~/../content/images/aa/thumbnails/" + value._TinyImageName; | 34 | $scope.imagePath = "~/../content/images/aa/thumbnails/" + value._TinyImageName; |
35 | 35 | ||
36 | - var $el = $('<div id="' + value._Id + '" class="col-sm-3 col-md-2" title = "' + value._Title + '" data-ng-click="openView($event)">' | 36 | + var $el = $('<div id="' + value._Id + '" class="col-sm-3 col-md-3" title = "' + value._Title + '" data-ng-click="openView($event)">' |
37 | + '<div class="thumbnail" >' | 37 | + '<div class="thumbnail" >' |
38 | - + '<img id="' + value._Title + '"ng-src="' + $scope.imagePath + '" alt="" title="" >' | 38 | + + '<img class="abc" id="' + value._Title + '"ng-src="' + $scope.imagePath + '" alt="" title="" >' |
39 | + '<div class="caption"><p>' + value._Title + '</p></div></a></div></div>').appendTo('#grid-view'); | 39 | + '<div class="caption"><p>' + value._Title + '</p></div></a></div></div>').appendTo('#grid-view'); |
40 | 40 | ||
41 | 41 |
400-SOURCECODE/AIAHTML5.Web/content/css/main.css
400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css
@@ -863,4 +863,16 @@ cursor:pointer; | @@ -863,4 +863,16 @@ cursor:pointer; | ||
863 | .annotationtoolbartab | 863 | .annotationtoolbartab |
864 | { | 864 | { |
865 | background:#626c34 !important; | 865 | background:#626c34 !important; |
866 | +} | ||
867 | +.tinyImg { | ||
868 | + width: 173px; | ||
869 | + height: 216px !important; | ||
870 | +} | ||
871 | + | ||
872 | +.abc { | ||
873 | + display: block; | ||
874 | + max-width:230px; | ||
875 | + max-height:95px; | ||
876 | + width: auto; | ||
877 | + height: auto; | ||
866 | } | 878 | } |
867 | \ No newline at end of file | 879 | \ No newline at end of file |