revert: restore media lightbox and layout, adjust nav/controls
CD — Kai-Sa-Cam Deployment / deploy (push) Successful in 10s
CD — Kai-Sa-Cam Deployment / deploy (push) Successful in 10s
This commit is contained in:
+3
-3
@@ -139,14 +139,14 @@ export function App() {
|
||||
{toast.message}
|
||||
</div>
|
||||
)}
|
||||
<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">
|
||||
<nav className="group mx-auto mt-[1vh] sm:mt-[1.5vh] flex trans-bloc rounded-[50px] w-[min(90vw,360px)] shrink-0 relative overflow-hidden">
|
||||
<div
|
||||
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 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 ${
|
||||
className={`relative z-10 flex-1 h-full py-2 sm:py-2.5 md:py-3 text-center text-sm sm:text-base md:text-lg transition-all active:scale-95 ${
|
||||
activeTab === "live"
|
||||
? "font-medium"
|
||||
: "group-hover:bg-white/10"
|
||||
@@ -156,7 +156,7 @@ export function App() {
|
||||
Live
|
||||
</button>
|
||||
<button
|
||||
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 ${
|
||||
className={`relative z-10 flex-1 h-full py-2 sm:py-2.5 md:py-3 text-center text-sm sm:text-base md:text-lg transition-all active:scale-95 ${
|
||||
activeTab === "media"
|
||||
? "font-medium"
|
||||
: "group-hover:bg-white/10"
|
||||
|
||||
@@ -28,7 +28,7 @@ export function Controls({
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="glass-card p-2 sm:p-3 md:p-4 rounded-[30px] sm:rounded-[50px] flex flex-col sm:flex-row items-center justify-between gap-2 sm:gap-3 md:gap-4">
|
||||
<div className="glass-card p-2 sm:p-3 md:p-4 rounded-[30px] sm:rounded-[50px] flex flex-col sm:flex-row items-center justify-between gap-2 sm:gap-3 md:gap-4 mx-auto w-full max-w-6xl">
|
||||
<div className="flex items-center gap-2 sm:gap-3 flex-wrap justify-center">
|
||||
<button
|
||||
onClick={onRecord}
|
||||
|
||||
@@ -177,11 +177,11 @@ export function MediaGallery({ showToast }: MediaGalleryProps) {
|
||||
|
||||
{selectedItem && (
|
||||
<div
|
||||
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"
|
||||
className="fixed inset-0 bg-black/80 backdrop-blur-md flex items-center justify-center z-50 p-4 animate-fade-in"
|
||||
onClick={() => setSelectedItem(null)}
|
||||
>
|
||||
<div
|
||||
className="relative w-screen h-screen flex items-center justify-center"
|
||||
className="relative max-w-5xl w-full max-h-[90vh] 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="w-full h-full max-w-full max-h-full object-contain rounded-[20px] sm:rounded-[30px]"
|
||||
className="max-w-full max-h-[85vh] rounded-[30px] glass-card"
|
||||
/>
|
||||
) : (
|
||||
<img
|
||||
src={selectedItem.url}
|
||||
alt={selectedItem.filename}
|
||||
className="w-full h-full max-w-full max-h-full object-contain rounded-[20px] sm:rounded-[30px]"
|
||||
className="max-w-full max-h-[85vh] rounded-[30px] glass-card object-contain"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user