Show event duration in landscape mode (#8301)

* Show event duration in landscape mode

* Update Events.jsx
This commit is contained in:
tpjanssen 2023-10-26 13:20:28 +02:00 committed by GitHub
parent cf2b56613f
commit 859ab0e7fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -776,11 +776,11 @@ function Event({
<div className="text-sm flex"> <div className="text-sm flex">
<Clock className="h-5 w-5 mr-2 inline" /> <Clock className="h-5 w-5 mr-2 inline" />
{formatUnixTimestampToDateTime(event.start_time, { ...config.ui })} {formatUnixTimestampToDateTime(event.start_time, { ...config.ui })}
<div className="hidden md:inline"> <div className="hidden sm:inline">
<span className="m-1">-</span> <span className="m-1">-</span>
<TimeAgo time={event.start_time * 1000} dense /> <TimeAgo time={event.start_time * 1000} dense />
</div> </div>
<div className="hidden md:inline"> <div className="hidden sm:inline">
<span className="m-1" />( {getDurationFromTimestamps(event.start_time, event.end_time)} ) <span className="m-1" />( {getDurationFromTimestamps(event.start_time, event.end_time)} )
</div> </div>
</div> </div>