- {versions.map((v, i) => (
-
+
+
+ {versions.map((v, i) => (
+ setActiveReportId(v.id)}
+ className={v.id === activeReportId ? "bg-accent font-medium" : ""}
+ >
+ Version {i + 1}
+
+ ))}
+
+
+ ) : (
+ /* Desktop: inline version buttons */
+
+
+ {versions.map((v, i) => (
+ setActiveReportId(v.id)}
+ className={`px-2 py-0.5 rounded-md text-xs font-medium transition-colors ${
+ v.id === activeReportId
+ ? "bg-primary text-primary-foreground shadow-sm"
+ : "text-muted-foreground hover:bg-muted hover:text-foreground"
+ }`}
+ >
+ v{i + 1}
+
+ ))}
+
+
+ {activeVersionIndex + 1} of {versions.length}
+
-
- {activeVersionIndex + 1} of {versions.length}
-
-