This commit is contained in:
Josh Hawkins 2025-10-16 07:39:14 -05:00
parent 672796845b
commit dedc26a866
4 changed files with 8 additions and 9 deletions

View File

@ -18,11 +18,9 @@
"aria": "Select events",
"noFoundForTimePeriod": "No events found for this time period."
},
"activity": {
"noActivitiesFound": "No activities found",
"activitiesCount_one": "{{count}} activity",
"activitiesCount_other": "{{count}} activities",
"object": "Object"
"detail": {
"noDataFound": "No detail data to review",
"aria": "Toggle detail view"
},
"objectTrack": {
"trackedPoint": "Tracked point",

View File

@ -169,7 +169,7 @@ export default function DetailStream({
<div className="space-y-2 p-4">
{reviewItems?.length === 0 ? (
<div className="py-8 text-center text-muted-foreground">
{t("activity.noActivitiesFound")}
{t("detail.noDataFound")}
</div>
) : (
reviewItems?.map((review: ReviewSegment) => {
@ -427,7 +427,7 @@ function EventCollapsible({
<button
onClick={(e) => e.stopPropagation()}
className="rounded bg-muted px-2 py-1 text-xs"
aria-label={t("activity.details")}
aria-label={t("detail.aria")}
>
{open ? (
<LuChevronUp className="size-3" />
@ -522,7 +522,7 @@ function ObjectTimeline({
if (!timeline || timeline.length === 0) {
return (
<div className="py-2 text-sm text-muted-foreground">
No timeline entries
No object detail data available.
</div>
);
}

View File

@ -50,7 +50,7 @@ export default function EventMenu({
: `${apiHost}api/events/${event.id}/thumbnail.webp`
}
>
{t("button.download", { ns: "common" })}
{t("itemMenu.downloadSnapshot.label")}
</a>
</DropdownMenuItem>

View File

@ -965,6 +965,7 @@ function Timeline({
return (
<div
className={cn(
"relative",
isDesktop
? `${timelineType == "timeline" ? "w-[100px]" : timelineType == "detail" ? "w-[30%]" : "w-60"} no-scrollbar overflow-y-auto`
: `overflow-hidden portrait:flex-grow ${timelineType == "timeline" ? "landscape:w-[100px]" : timelineType == "detail" ? "flex-1" : "landscape:w-[175px]"} `,