mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(thumbnail): Correctly apply thumbnail style to item directive, closes #509
This commit is contained in:
@@ -67,12 +67,6 @@
|
||||
.my-repeat-animation > .ng-move.ng-move-active {
|
||||
opacity:1;
|
||||
}
|
||||
.item-message img {
|
||||
float: left;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
@@ -115,7 +109,7 @@
|
||||
option-buttons="optionButtons1">
|
||||
|
||||
<!-- shows that the item directive does not need attributes and can get values from the list attributes -->
|
||||
<ion-item ion-item="item" ng-href="#" ng-click="itemClick()" class="item-message" ng-repeat="item in items" ng-class="{ active: item.isActive}">
|
||||
<ion-item ion-item="item" ng-href="#" ng-click="itemClick()" class="item-thumbnail-left" ng-repeat="item in items" ng-class="{ active: item.isActive}">
|
||||
<img ng-src="{{item.face}}">
|
||||
<h2>{{item.from}}</h2>
|
||||
<p>{{item.text}}</p>
|
||||
|
||||
@@ -438,7 +438,8 @@ button.item-button-right:after,
|
||||
// Item Thumbnails
|
||||
// -------------------------------
|
||||
|
||||
.item-thumbnail-left {
|
||||
.item-thumbnail-left,
|
||||
.item-thumbnail-left .item-content {
|
||||
padding-left: $item-thumbnail-width + $item-thumbnail-margin + $item-padding;
|
||||
min-height: $item-thumbnail-height + ($item-thumbnail-margin * 2);
|
||||
|
||||
@@ -451,8 +452,12 @@ button.item-button-right:after,
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.item-thumbnail-left.item-complex {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.item-thumbnail-right {
|
||||
.item-thumbnail-right,
|
||||
.item-thumbnail-right .item-content {
|
||||
padding-right: $item-thumbnail-width + $item-thumbnail-margin + $item-padding;
|
||||
min-height: $item-thumbnail-height + ($item-thumbnail-margin * 2);
|
||||
|
||||
@@ -465,6 +470,9 @@ button.item-button-right:after,
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.item-thumbnail-left.item-complex {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
|
||||
// Item Image
|
||||
|
||||
Reference in New Issue
Block a user