diff --git a/web/src/routes/Event.jsx b/web/src/routes/Event.jsx
index 3cbe4e60f..f3e66d5f8 100644
--- a/web/src/routes/Event.jsx
+++ b/web/src/routes/Event.jsx
@@ -4,6 +4,7 @@ import { route } from 'preact-router';
import ActivityIndicator from '../components/ActivityIndicator';
import Button from '../components/Button';
import Clip from '../icons/Clip';
+import ArrowDown from '../icons/ArrowDropdown';
import Delete from '../icons/Delete';
import Snapshot from '../icons/Snapshot';
import Dialog from '../components/Dialog';
@@ -17,6 +18,7 @@ export default function Event({ eventId }) {
const apiHost = useApiHost();
const { data, status } = useEvent(eventId);
const [showDialog, setShowDialog] = useState(false);
+ const [showDetails, setShowDetails] = useState(false);
const [deleteStatus, setDeleteStatus] = useState(FetchStatus.NONE);
const setDeleteEvent = useDelete();
@@ -53,10 +55,14 @@ export default function Event({ eventId }) {
return (
-
+
{data.camera} {data.label} {startime.toLocaleString()}
+
@@ -79,34 +85,36 @@ export default function Event({ eventId }) {
) : null}
-
-
- | Key |
- Value |
-
-
-
- | Camera |
-
- {data.camera}
- |
-
-
- | Timeframe |
-
- {startime.toLocaleString()} – {endtime.toLocaleString()}
- |
-
-
- | Score |
- {(data.top_score * 100).toFixed(2)}% |
-
-
- | Zones |
- {data.zones.join(', ')} |
-
-
-
+ {showDetails ? (
+
+
+ | Key |
+ Value |
+
+
+
+ | Camera |
+
+ {data.camera}
+ |
+
+
+ | Timeframe |
+
+ {startime.toLocaleString()} – {endtime.toLocaleString()}
+ |
+
+
+ | Score |
+ {(data.top_score * 100).toFixed(2)}% |
+
+
+ | Zones |
+ {data.zones.join(', ')} |
+
+
+
+ ) : null}
{data.has_clip ? (