fix: align media layout, nav hover unified
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:
+9
-7
@@ -139,10 +139,10 @@ export function App() {
|
||||
{toast.message}
|
||||
</div>
|
||||
)}
|
||||
<div className="mx-auto mt-[1vh] sm:mt-[1.5vh] w-[min(95vw,380px)] shrink-0 group">
|
||||
<nav className="flex trans-bloc rounded-full overflow-hidden">
|
||||
<div className="mx-auto mt-[1vh] sm:mt-[1.5vh] w-[min(95vw,380px)] shrink-0">
|
||||
<nav className="group relative flex trans-bloc rounded-full p-[1px] overflow-hidden">
|
||||
<div
|
||||
className={`absolute inset-y-0 left-0 w-1/2 rounded-full glass-button transition-transform duration-300 ease-in-out ${
|
||||
className={`absolute inset-y-[1px] left-[1px] w-[calc(50%-1px)] rounded-full glass-button transition-transform duration-300 ease-in-out ${
|
||||
activeTab === "media" ? "translate-x-full" : "translate-x-0"
|
||||
}`}
|
||||
/>
|
||||
@@ -150,7 +150,7 @@ export function App() {
|
||||
className={`relative z-10 flex-1 py-2 sm:py-2.5 md:py-3 text-center text-sm sm:text-base md:text-lg transition-all duration-300 active:scale-95 ${
|
||||
activeTab === "live"
|
||||
? "font-medium"
|
||||
: "group-hover:bg-white/12"
|
||||
: "group-hover:bg-white/10"
|
||||
}`}
|
||||
onClick={() => setActiveTab("live")}
|
||||
>
|
||||
@@ -160,7 +160,7 @@ export function App() {
|
||||
className={`relative z-10 flex-1 py-2 sm:py-2.5 md:py-3 text-center text-sm sm:text-base md:text-lg transition-all duration-300 active:scale-95 ${
|
||||
activeTab === "media"
|
||||
? "font-medium"
|
||||
: "group-hover:bg-white/12"
|
||||
: "group-hover:bg-white/10"
|
||||
}`}
|
||||
onClick={() => setActiveTab("media")}
|
||||
>
|
||||
@@ -209,8 +209,10 @@ export function App() {
|
||||
activeTab === "media" ? "translate-x-0" : "translate-x-full"
|
||||
}`}
|
||||
>
|
||||
<div className="flex-1 flex flex-col mt-2 sm:mt-3 px-1 sm:px-2 min-h-0">
|
||||
<MediaGallery showToast={showToast} />
|
||||
<div className="flex-1 flex flex-col items-center gap-2 sm:gap-3 md:gap-4 mt-2 sm:mt-3 px-1 sm:px-2 min-h-0">
|
||||
<div className="w-full flex-1 min-h-0">
|
||||
<MediaGallery showToast={showToast} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -84,7 +84,7 @@ export function MediaGallery({ showToast }: MediaGalleryProps) {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="flex-1 flex flex-col p-1 sm:p-2 md:p-3 gap-2 sm:gap-3 min-h-0">
|
||||
<div className="flex-1 flex flex-col p-1 sm:p-2 md:p-3 gap-2 sm:gap-3 min-h-0 h-full">
|
||||
<div className="flex justify-between items-center glass-card px-3 sm:px-4 md:px-5 py-1.5 sm:py-2 rounded-[30px] sm:rounded-[50px] flex-wrap gap-2 shrink-0">
|
||||
<span className="text-xs sm:text-sm md:text-base opacity-80">{media.length} fichiers</span>
|
||||
<div className="flex gap-2">
|
||||
|
||||
Reference in New Issue
Block a user