* Add correct start/end time for weekly calendar by looking at calendar's availability * Always show 24h in weekly calendar, added scroll functionality, current time and events in correct timezone * Improved current time style * Show slots for every minute, so also odd timeslots due to offsets work * Show correct timeformat for weekly view on left side time stamps * Fix data attr for debug * Position events differently so we can accomodate for offset start times. * Removed schedule from public event api, because we don't use it anymore * Fixed alignment of timeslots in weekview calendar. * Added loading spinner to weekly calendar * Force weekly view calendar hour labels to show 00 minutes, also for gmt x.5 timezones that are offset 30 mins. * Change event duration blocks in weekly calendar when user changes duration in multi duration event * Improved week view slot time label alignments for shorter durations --------- Co-authored-by: Peer Richelsen <[email protected]>
16 lines
699 B
TypeScript
16 lines
699 B
TypeScript
export const Spinner = () => (
|
|
<div className="fixed left-[calc(50%+calc(var(--booker-meta-width,0px)/2))] top-1/2 z-[80] h-10 w-10 -translate-x-1/2 -translate-y-1/2">
|
|
<svg className="h-10 w-10" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
<path
|
|
className="fill-default"
|
|
d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z"
|
|
opacity=".25"
|
|
/>
|
|
<path
|
|
className="animate-spinning fill-emphasis origin-center"
|
|
d="M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z"
|
|
/>
|
|
</svg>
|
|
</div>
|
|
);
|