From 8a892da7468276bcb4e00d5676123e421e125939 Mon Sep 17 00:00:00 2001 From: "Mahdi Cheikh Rouhou (macr)" Date: Tue, 2 Jan 2024 13:16:14 +0100 Subject: [PATCH] [FIX] hr_attendance: kiosk mode phone display Issue: ====== the display of kiosk mode in phone is broken Steps to reproduce the issue: ============================= - Install hr_attendance - Activate Employee Pin Identification in the settings - Change to phone view - Go to attendances/kiosk mode - Identify Manually - You can't search for employee , scroll employees and see the name of the employees. - Click on any employee, the button back isn't fully shown and clicking on it does nothing. Solution: ========= Display: - Added some css for `md` size devices. Back button: - There click function was missing. opw-3645708 closes odoo/odoo#147830 Signed-off-by: Sofie Gvaladze (sgv) --- .../static/src/components/card_layout/card_layout.xml | 2 +- .../components/manual_selection/manual_selection.xml | 2 +- .../static/src/components/pin_code/pin_code.xml | 2 +- addons/hr_attendance/static/src/hr_attendance.scss | 11 +++++++++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/addons/hr_attendance/static/src/components/card_layout/card_layout.xml b/addons/hr_attendance/static/src/components/card_layout/card_layout.xml index 6d367bbd0f8..42015a51d39 100644 --- a/addons/hr_attendance/static/src/components/card_layout/card_layout.xml +++ b/addons/hr_attendance/static/src/components/card_layout/card_layout.xml @@ -4,7 +4,7 @@
-
+
diff --git a/addons/hr_attendance/static/src/components/manual_selection/manual_selection.xml b/addons/hr_attendance/static/src/components/manual_selection/manual_selection.xml index a21673120df..24aec051b74 100644 --- a/addons/hr_attendance/static/src/components/manual_selection/manual_selection.xml +++ b/addons/hr_attendance/static/src/components/manual_selection/manual_selection.xml @@ -62,7 +62,7 @@
-
+
diff --git a/addons/hr_attendance/static/src/components/pin_code/pin_code.xml b/addons/hr_attendance/static/src/components/pin_code/pin_code.xml index d51a6321322..7524de8011e 100644 --- a/addons/hr_attendance/static/src/components/pin_code/pin_code.xml +++ b/addons/hr_attendance/static/src/components/pin_code/pin_code.xml @@ -8,7 +8,7 @@ - diff --git a/addons/hr_attendance/static/src/hr_attendance.scss b/addons/hr_attendance/static/src/hr_attendance.scss index 8f54e85a6de..1acc62a47ff 100644 --- a/addons/hr_attendance/static/src/hr_attendance.scss +++ b/addons/hr_attendance/static/src/hr_attendance.scss @@ -2,6 +2,17 @@ .o_hr_attendance_kiosk_mode { @include media-breakpoint-down(md) { width: 100%; + .o_search_panel { + width: 100% !important; + max-height: 200px !important; + } + .o_kanban_renderer { + max-height: 400px !important; + } + .card-body { + padding-left: 5px !important; + padding-right: 5px !important; + } } }