Fix Critical bug reported by Sonar 78/131778/3
authorvasraz <vasyl.razinkov@est.tech>
Mon, 24 Oct 2022 19:45:57 +0000 (20:45 +0100)
committerAndr� Schmid <andre.schmid@est.tech>
Tue, 25 Oct 2022 17:38:12 +0000 (17:38 +0000)
Fixes malformed 'calc' expressions reported as critical bug by Sonar Cloud

Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: Id31765c7b58701cc448b7c4b192db2986090ed79
Issue-ID: SDC-4230

catalog-ui/src/app/ng2/components/ui/multi-steps-wizard/multi-steps-wizard.component.less
catalog-ui/src/app/ng2/pages/composition/graph/composition-graph.component.less
catalog-ui/src/app/ng2/pages/type-workspace/type-workspace.component.less
catalog-ui/src/app/view-models/workspace/workspace.less

index 3a2168a..05165f7 100644 (file)
@@ -36,9 +36,9 @@ header{
         font-size: 13px;
       }
       .line{
-        width: calc(~'100% - @{circle_size}');
+        width: ~"calc(100% - @{circle_size})";
         position: relative;
-        left: calc(~'(100% - @{circle_size})/2 * (-1)');
+        left: ~"calc((100% - @{circle_size})/2 * (-1))";
         float: left;
         height: 2px;
         .inner-line{
index 4839b24..a12642d 100644 (file)
 
         .w-sdc-main-container-body-content-wrapper {
             overflow: auto;
-            height: calc(~'100% - @{action_nav_height}');
+            height: ~"calc(100% - @{action_nav_height})";
 
             .w-sdc-main-container-body-content-header {
                 display: flex;
index 5c479c7..aace132 100644 (file)
             }
         }
         .w-sdc-main-container-body-content {
-            // height:calc(~'100% - @{action_nav_height} - @{tab_title}');
             align-items: center;
             padding: 0 100px 20px 100px;
             &.third-party {
         }
         .w-sdc-main-container-body-content-wrapper {
             overflow: auto;
-            height: calc(~'100% - @{action_nav_height}');
+            height: ~"calc(100% - @{action_nav_height})";
             .w-sdc-main-container-body-content-header {
                 display: flex;
                 .workspace-tab-title {