diff --git a/resources/views/settings/home.blade.php b/resources/views/settings/home.blade.php
index 18f78e3f1..f8050ca00 100644
--- a/resources/views/settings/home.blade.php
+++ b/resources/views/settings/home.blade.php
@@ -38,10 +38,10 @@
@@ -112,6 +112,25 @@
swal.close();
});
+ $('#bio').on('change keyup paste', function(e) {
+ let el = $(this);
+ let len = el.val().length;
+ let limit = el.data('max-length');
+
+ if(len > 100) {
+ el.attr('rows', '4');
+ }
+
+ let val = len + ' / ' + limit;
+
+ if(len > limit) {
+ let diff = len - limit;
+ val = '
-' + diff + ' / ' + limit;
+ }
+
+ $('.bio-counter').html(val);
+ });
+
$(document).on('click', '.change-profile-photo', function(e) {
e.preventDefault();
var content = $('
').addClass('list-group');