diff --git a/public/img/dashboard/checkmark.svg b/public/img/dashboard/checkmark.svg new file mode 100644 index 0000000..313dac3 --- /dev/null +++ b/public/img/dashboard/checkmark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/js/dashboard.js b/resources/js/dashboard.js index 4750a64..67d523e 100644 --- a/resources/js/dashboard.js +++ b/resources/js/dashboard.js @@ -820,7 +820,9 @@ function userProfileImageInit() { } }); - $delete.on("click", function() { + $delete.on("click", function(e) { + e.preventDefault(); + if (!submitting) { submitting = true; diff --git a/resources/sass/dashboard.scss b/resources/sass/dashboard.scss index 3a4db9b..c0c4f47 100644 --- a/resources/sass/dashboard.scss +++ b/resources/sass/dashboard.scss @@ -370,7 +370,7 @@ body { display: block; width: 100%; height: 100%; - background-image: url("/img/dashboard/icons/checkmark.svg"); + background-image: url("/img/dashboard/checkmark.svg"); background-position: center center; background-size: 65% auto; background-repeat: no-repeat; @@ -1157,10 +1157,6 @@ form { border: 1px solid darken($c-dashboard-light, 14%); border-radius: 3px; background-color: darken($c-dashboard-light, 10%); - background-position: center center; - background-size: 50% auto; - background-repeat: no-repeat; - font-size: 0px; line-height: 1; cursor: pointer; @@ -1170,12 +1166,13 @@ form { } .image-upload-button { - background-image: url("/img/dashboard/icons/upload.svg"); + display: flex; + justify-content: center; + align-items: center; transition: background-color 150ms; } .image-delete-button { - background-image: url("/img/dashboard/icons/trash-alt.svg"); opacity: 1; transition: background-color 150ms, opacity 150ms; diff --git a/resources/views/dashboard/pages/settings.blade.php b/resources/views/dashboard/pages/settings.blade.php index 3b6843a..7e424d5 100644 --- a/resources/views/dashboard/pages/settings.blade.php +++ b/resources/views/dashboard/pages/settings.blade.php @@ -22,13 +22,13 @@
- - + +
-

User Profile

+

User Profile