From 09df480c3e7f0a98bf72997c2d71cf0fd9bc710b Mon Sep 17 00:00:00 2001 From: "Chrysanthe (chgo)" Date: Tue, 31 Oct 2023 09:40:46 +0100 Subject: [PATCH] [FIX] hr_attendance: review menu layout This commit fixes the layout of the hr attendance menu. Prior to this commit, the layout was a bit cluttered and had a lack of white space, making it difficult for the user to extract the information he needed. To fix these issues, we adapt the design of the menu, mainly by reorganizing the layout and adding more white space. With this commit, we were also able to clean the files, reducing the number of lines needed to achieve a good visual result. task-3577098 closes odoo/odoo#140454 Signed-off-by: Sofie Gvaladze (sgv) --- .../attendance_menu/attendance_menu.scss | 31 +------ .../attendance_menu/attendance_menu.xml | 85 ++++++++----------- 2 files changed, 37 insertions(+), 79 deletions(-) diff --git a/addons/hr_attendance/static/src/components/attendance_menu/attendance_menu.scss b/addons/hr_attendance/static/src/components/attendance_menu/attendance_menu.scss index fe4b8c5445c..1b2f5fddd7e 100644 --- a/addons/hr_attendance/static/src/components/attendance_menu/attendance_menu.scss +++ b/addons/hr_attendance/static/src/components/attendance_menu/attendance_menu.scss @@ -1,32 +1,3 @@ .att_container { - display: flex; - justify-content: normal; - align-items: flex-end; - min-width: 150px; - padding-left: 13px; -} - -.o_hour_att { - margin-right: 10px; -} - -.hour_label { - display: flex; - flex-direction: column; - .span{ - line-height: 1; - } -} - -.o_att_menu_container{ - display: flex; - align-items: center; - flex-direction: column; - flex-wrap: wrap; - align-content: center; -} - -.o_hr_attendance_systray_check_in_btn{ - width: 150px; - height: 40px; + font-variant-numeric: tabular-nums; } diff --git a/addons/hr_attendance/static/src/components/attendance_menu/attendance_menu.xml b/addons/hr_attendance/static/src/components/attendance_menu/attendance_menu.xml index 86d1b54a46a..28f210449a8 100644 --- a/addons/hr_attendance/static/src/components/attendance_menu/attendance_menu.xml +++ b/addons/hr_attendance/static/src/components/attendance_menu/attendance_menu.xml @@ -3,58 +3,45 @@ - -
+ - - - -
- - -
-
-

-

-
- Since - -
-
- -
-
-

-

-
- Previously - Today -
+ + + +
+
+
+
+ Before +
+
+
+ Since +
+
+
+
+
+ Total today +

+

+
- - - - -
- -
-
-

-

-
- Hours - Today -
- -
-
-
- + +
+ +