We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3addccc commit b8c5bdeCopy full SHA for b8c5bde
frontend/src/components/app/users/UserProfile.vue
@@ -84,7 +84,11 @@ export default {
84
const sliderScore = document.getElementById('sliderScore');
85
const sliderScoreWidth = `${sliderScore.getBoundingClientRect().width}px`;
86
const marginLeft = `${(this.user.heat_score / maxScore) * 100}%`;
87
- sliderScore.style.marginLeft = `calc(${marginLeft} - ${sliderScoreWidth})`;
+ if (this.user.heat_score / maxScore < 0.2) {
88
+ sliderScore.style.marginLeft = `${marginLeft}`;
89
+ } else {
90
+ sliderScore.style.marginLeft = `calc(${marginLeft} - ${sliderScoreWidth})`;
91
+ }
92
const interests = this.user.tags;
93
if (interests) {
94
for (let j = 0; j < interests.length; j += 1) {
0 commit comments