From bc7d06634673ed86e26cd87d581f378250fff6e3 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 24 Apr 2024 15:03:08 +0300 Subject: [PATCH] snug scheduler UI to fit the whole day in one screen --- components/calendar/ShiftComponent.tsx | 6 +++--- pages/cart/calendar/index.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/calendar/ShiftComponent.tsx b/components/calendar/ShiftComponent.tsx index 4c33858..99e4976 100644 --- a/components/calendar/ShiftComponent.tsx +++ b/components/calendar/ShiftComponent.tsx @@ -193,7 +193,7 @@ function ShiftComponent({ shift, onShiftSelect, isSelected, onPublisherSelect, a return (
handlePublisherClick(ass.publisher)}> {publisherInfo.firstName} {publisherInfo.lastName} @@ -202,12 +202,12 @@ function ShiftComponent({ shift, onShiftSelect, isSelected, onPublisherSelect, a {shift.requiresTransport && ( toggleTransport(ass) : undefined} - className={`material-icons ${ass.isWithTransport ? 'text-green-500 font-bold' : (transportProvided ? 'text-gray-400 ' : 'text-orange-400 font-bold')} ${ass.canTransport || ass.isWithTransport || true ? ' cursor-pointer' : 'cursor-not-allowed'} px-3 py-1 ml-2 rounded-md`} + className={`material-icons ${ass.isWithTransport ? 'text-green-500 font-bold' : (transportProvided ? 'text-gray-400 ' : 'text-orange-400 font-bold')} ${ass.canTransport || ass.isWithTransport || true ? ' cursor-pointer' : 'cursor-not-allowed'} px-3 py-0 ml-2 rounded-md`} > {ass.isWithTransport ? "транспорт" : ass.canTransport ? "може транспорт" : "без транспорт"} )} - diff --git a/pages/cart/calendar/index.tsx b/pages/cart/calendar/index.tsx index 6ad9127..da3bc2f 100644 --- a/pages/cart/calendar/index.tsx +++ b/pages/cart/calendar/index.tsx @@ -677,7 +677,7 @@ export default function CalendarPage({ initialEvents, initialShifts }) { list of publishers for the selected date with availabilities ------------------AVAILABLE PUBLISHERS LIST FOR THE SELECTED DATE0 ------------------ */} -
+

Достъпни за този ден: {availablePubs.length}