From c2d49d57d600bdae01963791b347bd812c2aca86 Mon Sep 17 00:00:00 2001 From: Nicola Carminati Date: Thu, 28 Feb 2019 16:11:29 +0100 Subject: [PATCH 1/2] Fix visuals in tool-in-spindle --- Step/wwwroot/assets/styles/base/depot.less | 4 ++++ Step/wwwroot/assets/styles/base/head.less | 3 +-- Step/wwwroot/assets/styles/style.css | 7 +++++-- .../app_modules/production/components/head-production.vue | 2 +- .../src/app_modules/tooling/components/tooling-depot.ts | 2 +- .../src/app_modules/tooling/components/tooling-depot.vue | 4 ++-- .../src/modules/base-components/cards/card-busy-depot.vue | 6 +++++- Step/wwwroot/src/modules/heads/head-SPINDLE.vue | 2 +- Step/wwwroot/src/modules/heads/head.vue | 2 +- 9 files changed, 21 insertions(+), 11 deletions(-) diff --git a/Step/wwwroot/assets/styles/base/depot.less b/Step/wwwroot/assets/styles/base/depot.less index 9b16cdae..6ffab436 100644 --- a/Step/wwwroot/assets/styles/base/depot.less +++ b/Step/wwwroot/assets/styles/base/depot.less @@ -82,6 +82,10 @@ align-items: center; justify-content: center; font-size: 3em; + img{ + max-width: 262px; + max-height: 106px; + } } .busyPosHalf{ width: 136px; diff --git a/Step/wwwroot/assets/styles/base/head.less b/Step/wwwroot/assets/styles/base/head.less index e6bf166e..f48c5085 100644 --- a/Step/wwwroot/assets/styles/base/head.less +++ b/Step/wwwroot/assets/styles/base/head.less @@ -107,7 +107,7 @@ overflow: hidden; .tool-name{ white-space: pre; - line-height: 47px; + line-height: 41px; } .tool-duplo{ font-size: 14px; @@ -335,7 +335,6 @@ overflow: hidden; .tool-name{ white-space: pre; - line-height: 47px; line-height: 20px; } .tool-duplo{ diff --git a/Step/wwwroot/assets/styles/style.css b/Step/wwwroot/assets/styles/style.css index 0865fc01..33b2b6bf 100644 --- a/Step/wwwroot/assets/styles/style.css +++ b/Step/wwwroot/assets/styles/style.css @@ -5931,7 +5931,7 @@ footer .container button.big:before { .head-production .tool-box .tool-name, .head-awj .tool-box .tool-name { white-space: pre; - line-height: 47px; + line-height: 41px; } .head-spindle .tool-box .tool-duplo, .head-production .tool-box .tool-duplo, @@ -6236,7 +6236,6 @@ footer .container button.big:before { } .head-std aside .tool-box .tool-name { white-space: pre; - line-height: 47px; line-height: 20px; } .head-std aside .tool-box .tool-duplo { @@ -11638,6 +11637,10 @@ footer .container button.big:before { justify-content: center; font-size: 3em; } +.depot-container .depot-position .busyContainer .busyPos img { + max-width: 262px; + max-height: 106px; +} .depot-container .depot-position .busyContainer .busyPosHalf { width: 136px; height: 136px; diff --git a/Step/wwwroot/src/app_modules/production/components/head-production.vue b/Step/wwwroot/src/app_modules/production/components/head-production.vue index 42e4f0aa..f2df9537 100644 --- a/Step/wwwroot/src/app_modules/production/components/head-production.vue +++ b/Step/wwwroot/src/app_modules/production/components/head-production.vue @@ -47,7 +47,7 @@
{{tool}} - {{toolName}} + {{toolName}} {{'tooling_tool_abbreviation' | localize('DP%d',toolDuplo)}}
diff --git a/Step/wwwroot/src/app_modules/tooling/components/tooling-depot.ts b/Step/wwwroot/src/app_modules/tooling/components/tooling-depot.ts index 6236d2b6..34e98ec1 100644 --- a/Step/wwwroot/src/app_modules/tooling/components/tooling-depot.ts +++ b/Step/wwwroot/src/app_modules/tooling/components/tooling-depot.ts @@ -598,7 +598,7 @@ export default class depot extends Vue { // SIEMENS public doAddToDepotPosition(position, event) { if (this.draggingTool && this.draggingPosition == position.positionId) { - if (this.toolAtPosition(position.positionId) || !position.canLoadTool) + if (this.toolAtPosition(position.positionId) || !position.canLoadTool || position.occupied) return this.draggingIn = false; diff --git a/Step/wwwroot/src/app_modules/tooling/components/tooling-depot.vue b/Step/wwwroot/src/app_modules/tooling/components/tooling-depot.vue index ce4f520d..9cbe0cb1 100644 --- a/Step/wwwroot/src/app_modules/tooling/components/tooling-depot.vue +++ b/Step/wwwroot/src/app_modules/tooling/components/tooling-depot.vue @@ -55,7 +55,7 @@
- + - +
diff --git a/Step/wwwroot/src/modules/base-components/cards/card-busy-depot.vue b/Step/wwwroot/src/modules/base-components/cards/card-busy-depot.vue index 48aeee8b..554a02b2 100644 --- a/Step/wwwroot/src/modules/base-components/cards/card-busy-depot.vue +++ b/Step/wwwroot/src/modules/base-components/cards/card-busy-depot.vue @@ -21,12 +21,16 @@
+
+ +