fix: tab hover full width, smaller nav, full screen lightbox
CD — Kai-Sa-Cam Deployment / deploy (push) Successful in 10s

This commit is contained in:
2026-10-30 21:04:00 +01:00
parent 39cdde578f
commit 6e6b4fb763
2 changed files with 10 additions and 10 deletions
+6 -6
View File
@@ -139,27 +139,27 @@ export function App() {
{toast.message}
</div>
)}
<nav className="mx-auto mt-[1vh] sm:mt-[1.5vh] flex trans-bloc rounded-[50px] w-[min(90vw,320px)] shrink-0 relative overflow-hidden">
<nav className="group mx-auto mt-[1vh] sm:mt-[1.5vh] flex trans-bloc rounded-[50px] w-[min(70vw,240px)] shrink-0 relative overflow-hidden">
<div
className={`absolute top-0 bottom-0 left-0 w-1/2 rounded-[50px] glass-button transition-transform duration-300 ease-in-out ${
className={`absolute inset-y-0 left-0 w-1/2 rounded-[50px] glass-button transition-transform duration-300 ease-in-out ${
activeTab === "media" ? "translate-x-full" : "translate-x-0"
}`}
/>
<button
className={`relative z-10 flex-1 py-1.5 sm:py-2 md:py-2.5 text-center text-sm sm:text-base md:text-lg transition-all active:scale-95 ${
className={`relative z-10 flex-1 h-full py-1.5 sm:py-2 md:py-2.5 text-center text-sm sm:text-base md:text-lg transition-all active:scale-95 ${
activeTab === "live"
? "font-medium"
: "hover:bg-white/10"
: "group-hover:bg-white/10"
}`}
onClick={() => setActiveTab("live")}
>
Live
</button>
<button
className={`relative z-10 flex-1 py-1.5 sm:py-2 md:py-2.5 text-center text-sm sm:text-base md:text-lg transition-all active:scale-95 ${
className={`relative z-10 flex-1 h-full py-1.5 sm:py-2 md:py-2.5 text-center text-sm sm:text-base md:text-lg transition-all active:scale-95 ${
activeTab === "media"
? "font-medium"
: "hover:bg-white/10"
: "group-hover:bg-white/10"
}`}
onClick={() => setActiveTab("media")}
>
+4 -4
View File
@@ -177,11 +177,11 @@ export function MediaGallery({ showToast }: MediaGalleryProps) {
{selectedItem && (
<div
className="fixed inset-0 bg-black/90 backdrop-blur-md flex items-center justify-center z-[60] p-4 animate-fade-in"
className="fixed inset-0 bg-black/95 backdrop-blur-md flex items-center justify-center z-[9999] p-2 sm:p-4 animate-fade-in"
onClick={() => setSelectedItem(null)}
>
<div
className="relative max-w-[95vw] w-full max-h-[95vh] flex items-center justify-center"
className="relative w-screen h-screen flex items-center justify-center"
onClick={(e) => e.stopPropagation()}
>
{selectedItem.type === "video" ? (
@@ -189,13 +189,13 @@ export function MediaGallery({ showToast }: MediaGalleryProps) {
src={selectedItem.url}
controls
autoPlay
className="max-w-full max-h-[90vh] rounded-[30px] glass-card"
className="w-full h-full max-w-full max-h-full object-contain rounded-[20px] sm:rounded-[30px]"
/>
) : (
<img
src={selectedItem.url}
alt={selectedItem.filename}
className="max-w-full max-h-[90vh] rounded-[30px] glass-card object-contain"
className="w-full h-full max-w-full max-h-full object-contain rounded-[20px] sm:rounded-[30px]"
/>
)}
</div>