forked from umbraco/Umbraco-CMS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update styling and code style of imagepicker prevalue editor
- Loading branch information
1 parent
4dc1ee6
commit 5f97fca
Showing
2 changed files
with
26 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 17 additions & 19 deletions
36
src/Umbraco.Web.UI.Client/src/views/prevalueeditors/imagepicker.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
<div ng-controller="Umbraco.PrevalueEditors.ImageFilePickerController" class="umb-property-editor umb-mediapicker"> | ||
<div ng-controller="Umbraco.PrevalueEditors.ImageFilePickerController as vm" class="umb-property-editor umb-mediapicker umb-mediapicker-single"> | ||
<div class="flex flex-wrap error"> | ||
<ul class="umb-sortable-thumbnails"> | ||
<li ng-if="vm.model.value" class="umb-sortable-thumbnails__wrapper"> | ||
<img ng-src="{{vm.model.value}}" alt=""> | ||
|
||
<ul class="umb-sortable-thumbnails" ng-if="model.value"> | ||
<li class="umb-sortable-thumbnails__wrapper"> | ||
<img ng-src="{{model.value}}" alt=""> | ||
<div class="umb-sortable-thumbnails__actions" data-element="sortable-thumbnail-actions"> | ||
<button type="button" aria-label="Remove" class="umb-sortable-thumbnails__action -red btn-reset" ng-click="vm.remove()"> | ||
<umb-icon icon="icon-delete" class="icon"></umb-icon> | ||
</button> | ||
</div> | ||
</li> | ||
|
||
<div class="umb-sortable-thumbnails__actions"> | ||
<button type="button" aria-label="Remove" class="umb-sortable-thumbnails__action -red btn-reset" ng-click="remove()"> | ||
<umb-icon icon="icon-delete" class="icon"></umb-icon> | ||
<li style="border: none;" class="add-wrapper unsortable" ng-hide="vm.model.value"> | ||
<button type="button" aria-label="Open media picker" class="add-link add-link-square btn-reset umb-outline umb-outline--surrounding" ng-click="vm.add()"> | ||
<umb-icon icon="icon-add" class="icon large"></umb-icon> | ||
</button> | ||
</div> | ||
</li> | ||
</ul> | ||
|
||
<button type="button" | ||
class="add-link umb-outline umb-outline--surrounding" | ||
ng-class="{'add-link-square': !model.value }" | ||
ng-click="add()" | ||
ng-hide="model.value"> | ||
<umb-icon icon="icon-add" class="icon large"></umb-icon> | ||
</button> | ||
|
||
</li> | ||
</ul> | ||
</div> | ||
</div> |