{comparisonProduct && (
diff --git a/app/src/styles/layout/compareLayout.scss b/app/src/styles/layout/compareLayout.scss
index e7d54c6..c338f7c 100644
--- a/app/src/styles/layout/compareLayout.scss
+++ b/app/src/styles/layout/compareLayout.scss
@@ -52,7 +52,7 @@
border-radius: 50%;
cursor: ew-resize;
transition: transform 0.1s ease;
- z-index: 10;
+ z-index: 100;
}
.chooseLayout-container {
@@ -161,9 +161,7 @@
width: 100%;
&:hover {
- background-color: var(
- --highlight-text-color
- ) !important;
+ background-color: var(--highlight-text-color) !important;
border-radius: 4px;
.layout {
@@ -254,6 +252,7 @@
display: flex;
}
}
+
.metric-value {
padding-top: 6px;
font-size: var(--font-size-xlarge);
@@ -289,6 +288,7 @@
top: -57%;
left: 220%;
}
+
&::after {
content: "";
position: absolute;
@@ -300,21 +300,19 @@
background-color: #b7b7c6;
// Custom polygon shape (adjust if needed)
- clip-path: polygon(
- 96% 52%,
- 96% 54%,
- 45% 53%,
- 3% 100%,
- 0 100%,
- 42% 52%
- );
+ clip-path: polygon(96% 52%,
+ 96% 54%,
+ 45% 53%,
+ 3% 100%,
+ 0 100%,
+ 42% 52%);
z-index: 0; // Behind any inner content
}
}
// Optional: content above the shape
- > * {
+ >* {
position: relative;
z-index: 1;
}
@@ -322,12 +320,14 @@
&:nth-child(2) {
grid-column-start: 1;
grid-row-start: 2;
+
.metric-label {
white-space: normal;
width: 50px;
left: 230%;
}
}
+
&:nth-child(3) {
grid-row: span 2 / span 2;
grid-column-start: 2;
@@ -367,21 +367,19 @@
height: 100%;
background: var(--background-color, wheat);
- clip-path: polygon(
- 25% 0%,
- 75% 0%,
- 100% 50%,
- 75% 100%,
- 25% 100%,
- 0% 50%
- );
+ clip-path: polygon(25% 0%,
+ 75% 0%,
+ 100% 50%,
+ 75% 100%,
+ 25% 100%,
+ 0% 50%);
filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
z-index: 0;
}
// Content stays above the shape
- > * {
+ >* {
position: relative;
z-index: 1;
}
@@ -586,4 +584,4 @@
position: relative;
}
}
-}
+}
\ No newline at end of file
diff --git a/app/src/styles/layout/loading.scss b/app/src/styles/layout/loading.scss
index 57473c2..5b4fe12 100644
--- a/app/src/styles/layout/loading.scss
+++ b/app/src/styles/layout/loading.scss
@@ -6,6 +6,16 @@
width: 100vw;
background: var(--background-color-solid);
+ &.comparisionLoading {
+
+ position: fixed;
+ top: 0;
+ right: 0;
+
+ height: 100vh;
+ width: 50vw;
+ }
+
.loading-container {
position: relative;
height: 100%;
@@ -59,6 +69,12 @@
}
.progress-container {
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+
.progress-value {
font-family: #{$font-josefin-sans};
font-weight: #{$thin-weight};
@@ -69,7 +85,7 @@
.progress-indicator-container {
height: 6px;
- width: 60vw;
+ width: 60%;
background: var(--highlight-accent-color);
border-radius: #{$border-radius-small};
position: relative;
diff --git a/app/src/styles/scene/scene.scss b/app/src/styles/scene/scene.scss
index a0dde58..2ac8f98 100644
--- a/app/src/styles/scene/scene.scss
+++ b/app/src/styles/scene/scene.scss
@@ -62,7 +62,7 @@
border-radius: #{$border-radius-large};
outline: 1px solid var(--border-color);
transform: translate(-50%, 12px);
- z-index: 100;
+ z-index: 2;
.presets-container {
@include flex-center;