Fixes color selector layout for empty and full color list

stable
Xavier Julián 2016-09-15 09:41:21 +02:00 committed by David Barragán Merino
parent d16ece1e80
commit 9bae924dce
3 changed files with 11 additions and 18 deletions

View File

@ -22,6 +22,7 @@
tg-color-selector(
ng-if="!vm.disableColorSelection"
on-select-color="vm.selectColor(color)"
is-color-required="false"
)
tg-svg.save(

View File

@ -6,16 +6,11 @@ section
.admin-tags-section-wrapper
form.add-tag-container.new-value.hidden
tg-color-selection.color-column(
tg-allow-empty="true"
tg-color-selector.color-column(
is-color-required="false"
ng-model="newValue"
on-select-color="newValue.color = color"
)
.current-color(
ng-style="{background: newValue.color}"
ng-if="newValue.color"
)
.current-color.empty-color(ng-if="!newValue.color")
include ../../components/select-color
.tag-name
input(
@ -115,17 +110,11 @@ section
)
.row.tag-row.table-main.edition.hidden
.color-column(
tg-color-selection
tg-allow-empty="true"
tg-color-selector.color-column(
is-color-required="false"
ng-model="tag"
on-select-color="tag.color = color"
)
.current-color(
ng-style="{background: tag.color}"
ng-if="tag.color"
)
.current-color.empty-color(ng-if="!tag.color")
include ../../components/select-color
.status-name
input(

View File

@ -27,7 +27,10 @@
background: $white;
}
.icon {
opacity: 1;
&.icon-close,
&.icon-save {
opacity: 1;
}
}
}