From 060a383aa3a4cd7961774e1932e5918e725d2bd0 Mon Sep 17 00:00:00 2001 From: Dossogne Bertrand Date: Wed, 4 Jan 2023 15:57:21 +0000 Subject: [PATCH] [FIX] hr: fix visuals for mobile on form & kanban views Before this commit, two visual errors were present on mobile: - In the employee form view, the name and professions were overlapping with the profile picture; - In the employee kanban view, the presence logo and the activity logo were misaligned This commit also fixes some indentation errors. closes odoo/odoo#109145 Signed-off-by: Yannick Tivisse (yti) --- addons/hr/static/src/scss/hr.scss | 28 +++- addons/hr/views/hr_employee_views.xml | 176 +++++++++++++------------- 2 files changed, 113 insertions(+), 91 deletions(-) diff --git a/addons/hr/static/src/scss/hr.scss b/addons/hr/static/src/scss/hr.scss index 1670c1913b4..eb4c249ec3d 100644 --- a/addons/hr/static/src/scss/hr.scss +++ b/addons/hr/static/src/scss/hr.scss @@ -4,10 +4,18 @@ } .o_employee_form { + .o_employee_chat_btn { + display: flex; + flex-direction: row; + align-items: center; + margin-bottom: 5px; + @include media-breakpoint-down(md) { + margin-left: 0!important; + } + } .o_employee_avatar { - position: absolute; - top: 60px; - right: 10px; + position: relative; + width: fit-content; display: flex; flex-direction: column; align-items: flex-start; @@ -28,7 +36,19 @@ } } .oe_title { - max-width: 75%; + flex: 1; + } +} + +.o_hr_employee_kanban { + .o_employee_availability { + margin: 0 1px; + } + .o_kanban_record_bottom { + margin: 0 var(--KanbanRecord-padding-h); + .fa.fa-comments { + margin-bottom: 5px; + } } } diff --git a/addons/hr/views/hr_employee_views.xml b/addons/hr/views/hr_employee_views.xml index 163735a084f..b0edd6a03eb 100644 --- a/addons/hr/views/hr_employee_views.xml +++ b/addons/hr/views/hr_employee_views.xml @@ -37,7 +37,7 @@ - + @@ -62,31 +62,33 @@ -
- -
- - - - - - - - +
+
+

+
+ +
+ +

+

+ +

+ +
+
+ +
+ + + + + + + + +
-
-
-

- - - - -

-

- -

-
@@ -202,7 +204,6 @@ -
@@ -267,38 +268,39 @@ - hr.employee.kanban - hr.employee - 10 - - - - - - - - - - - -
+ hr.employee.kanban + hr.employee + 10 + + + + + + + + + + + +
-
-
- - -
+
+ + +
-
-
@@ -306,7 +308,7 @@ title="Absent" name="presence_absent">
-
@@ -328,32 +330,32 @@
-
- -
-
- -
    -
  • -
  • -
  • -
-
-
-
-
-
+ + +
+
+ +
    +
  • +
  • +
  • +
+
+
+
+
+
-
+
-
-
-
-
- - - +
+
+
+
+ + +
@@ -385,13 +387,13 @@ -

- Add a new employee -

- With just a quick glance on the Odoo employee screen, you - can easily find all the information you need for each person; - contact data, job position, availability, etc. -

+

+ Add a new employee +

+ With just a quick glance on the Odoo employee screen, you + can easily find all the information you need for each person; + contact data, job position, availability, etc. +

@@ -455,13 +457,13 @@ "expand": 1}
-

- Add a new employee -

- With just a quick glance on the Odoo employee screen, you - can easily find all the information you need for each person; - contact data, job position, availability, etc. -

+

+ Add a new employee +

+ With just a quick glance on the Odoo employee screen, you + can easily find all the information you need for each person; + contact data, job position, availability, etc. +