diff --git a/addons/default/visiosoft/profile-module/resources/assets/css/profile.css b/addons/default/visiosoft/profile-module/resources/assets/css/profile.css index 367582e6a..9ccc05938 100644 --- a/addons/default/visiosoft/profile-module/resources/assets/css/profile.css +++ b/addons/default/visiosoft/profile-module/resources/assets/css/profile.css @@ -2,9 +2,4 @@ background-color: #343a40 !important; border-color: #343a40 #343a40 #343a40; color: white!important; -} - -/* Hide profile upload table */ -.selected.file-rows-table table td:first-child ~ td { - display: none; } \ No newline at end of file diff --git a/addons/default/visiosoft/profile-module/src/Profile/Profile/ProfileFormHandler.php b/addons/default/visiosoft/profile-module/src/Profile/Profile/ProfileFormHandler.php index 412ad244d..c6a4bc663 100644 --- a/addons/default/visiosoft/profile-module/src/Profile/Profile/ProfileFormHandler.php +++ b/addons/default/visiosoft/profile-module/src/Profile/Profile/ProfileFormHandler.php @@ -26,6 +26,8 @@ class ProfileFormHandler if ($builder->getPostValue('file') != null) { $parameters['file_id'] = $builder->getPostValue('file'); + } elseif (empty($builder->getPostValue('file'))) { + $parameters['file_id'] = null; } $userModel->newQuery()->where('id', Auth::id())->update($parameters); diff --git a/addons/default/visiosoft/singlefile-field_type/resources/less/input.less b/addons/default/visiosoft/singlefile-field_type/resources/less/input.less index 9436d9322..a0e0ecf5a 100644 --- a/addons/default/visiosoft/singlefile-field_type/resources/less/input.less +++ b/addons/default/visiosoft/singlefile-field_type/resources/less/input.less @@ -5,6 +5,10 @@ table { tr { td { + a, a:hover { + color: #fff; + } + padding: 9px 0; border-top: none; border-bottom: none; diff --git a/addons/default/visiosoft/singlefile-field_type/resources/less/upload.less b/addons/default/visiosoft/singlefile-field_type/resources/less/upload.less index 125e4e785..97ba8b167 100644 --- a/addons/default/visiosoft/singlefile-field_type/resources/less/upload.less +++ b/addons/default/visiosoft/singlefile-field_type/resources/less/upload.less @@ -33,6 +33,7 @@ progress { margin-bottom: 0.25em; + width: 100%; } .progress-upload { @@ -48,3 +49,7 @@ } } } + +.btn-success { + color: #fff !important; +} diff --git a/addons/default/visiosoft/singlefile-field_type/resources/views/upload/index.twig b/addons/default/visiosoft/singlefile-field_type/resources/views/upload/index.twig index 7b59abd98..6fc30839b 100644 --- a/addons/default/visiosoft/singlefile-field_type/resources/views/upload/index.twig +++ b/addons/default/visiosoft/singlefile-field_type/resources/views/upload/index.twig @@ -17,7 +17,7 @@ {% include "visiosoft.field_type.singlefile::upload/partials/body" %} {% include "visiosoft.field_type.singlefile::upload/partials/template" %} -