Skip to content

Commit 4a58b91

Browse files
committed
Affichage plus de 10 skills dans account
1 parent 5ececdc commit 4a58b91

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

assets/js/front/account.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ class Account {
956956
e.preventDefault();
957957

958958
$('#list-following_skills').find('.card').show();
959-
$(this).html('See less');
959+
$(this).html('<i class="far fa-minus-square"></i> See less');
960960
$(this).toggleClass('see-more see-less');
961961
});
962962

@@ -973,7 +973,7 @@ class Account {
973973
});
974974

975975
$(this).toggleClass('see-less see-more');
976-
$(this).html('See less');
976+
$(this).html('<i class="far fa-plus-square"></i> See more');
977977
});
978978
}
979979

assets/scss/account.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,8 @@ $icon-font-path: "~bootstrap-sass/assets/fonts/bootstrap/";
316316
}
317317
}
318318

319-
.see-more {
319+
.see-more, .see-less {
320320
font-weight: 600;
321-
text-decoration: underline;
322321
margin-top: 10px;
323322
display: inline-block;
324323
}

templates/front/account/skills.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
</div>
4141
{% endfor %}
4242
{% endif %}
43-
{% if associatedSkills|length > 10 %}
44-
<a href="#" class="see-more">{{ 'see_more'|trans }}</a>
43+
{% if related_skills|length > 10 %}
44+
<a href="#" class="see-more"><i class="far fa-plus-square"></i> {{ 'see_more'|trans }}</a>
4545
{% endif %}
4646
</div>
4747
</fieldset>

0 commit comments

Comments
 (0)