From 709b06e4ea1a1b3c35e7984e47917f310c93a3b7 Mon Sep 17 00:00:00 2001 From: gerard Date: Tue, 24 Apr 2018 14:40:12 +0200 Subject: [PATCH] Tarea #278 Refactor descriptor item CR Carlos --- client/item/src/descriptor/descriptor.html | 10 +++++----- client/item/src/descriptor/descriptor.js | 1 + client/item/src/descriptor/style.scss | 4 ++++ 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 client/item/src/descriptor/style.scss diff --git a/client/item/src/descriptor/descriptor.html b/client/item/src/descriptor/descriptor.html index a4dab52b1..13847d8c6 100644 --- a/client/item/src/descriptor/descriptor.html +++ b/client/item/src/descriptor/descriptor.html @@ -9,7 +9,7 @@ - + -
{{$ctrl.item.name}}
- - +
{{$ctrl.item.id}}
+ + diff --git a/client/item/src/descriptor/descriptor.js b/client/item/src/descriptor/descriptor.js index e46267d83..edfc8eaf7 100644 --- a/client/item/src/descriptor/descriptor.js +++ b/client/item/src/descriptor/descriptor.js @@ -1,4 +1,5 @@ import ngModule from '../module'; +import './style.scss'; ngModule.component('vnItemDescriptor', { template: require('./descriptor.html'), diff --git a/client/item/src/descriptor/style.scss b/client/item/src/descriptor/style.scss new file mode 100644 index 000000000..db4db097f --- /dev/null +++ b/client/item/src/descriptor/style.scss @@ -0,0 +1,4 @@ +img[ng-src] { + height: 100%; + width: 100%; + } \ No newline at end of file