Skip to content

Commit

Permalink
Show event duration in landscape mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tpjanssen committed Oct 24, 2023
1 parent e0e8a6f commit 312580d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/routes/Events.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -776,11 +776,11 @@ function Event({
<div className="text-sm flex">
<Clock className="h-5 w-5 mr-2 inline" />
{formatUnixTimestampToDateTime(event.start_time, { ...config.ui })}
<div className="hidden md:inline">
<div className="hidden landscape:inline">
<span className="m-1">-</span>
<TimeAgo time={event.start_time * 1000} dense />
</div>
<div className="hidden md:inline">
<div className="hidden landscape:inline">
<span className="m-1" />( {getDurationFromTimestamps(event.start_time, event.end_time)} )
</div>
</div>
Expand Down

0 comments on commit 312580d

Please sign in to comment.