fix: nav hover both sides, lightbox padding
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:
+10
-10
@@ -150,14 +150,14 @@ export function App() {
|
||||
</div>
|
||||
)}
|
||||
<div className="mx-auto mt-[1vh] sm:mt-[1.5vh] w-[min(95vw,380px)] shrink-0">
|
||||
<div className="relative flex rounded-full overflow-hidden bg-[rgba(237,237,237,0.12)] backdrop-blur-[25px] border border-white/10">
|
||||
<div className="group relative flex rounded-full overflow-hidden bg-[rgba(237,237,237,0.12)] backdrop-blur-[25px] border border-white/10">
|
||||
<div
|
||||
className={`absolute inset-y-0 left-0 w-1/2 rounded-full bg-[rgba(237,237,237,0.2)] backdrop-blur-[10px] transition-transform duration-300 ease-in-out ${
|
||||
className={`absolute inset-y-0 left-0 w-1/2 rounded-full bg-[rgba(237,237,237,0.28)] backdrop-blur-[10px] transition-all duration-300 ease-in-out ${
|
||||
activeTab === "media" ? "translate-x-full" : "translate-x-0"
|
||||
}`}
|
||||
} group-hover:bg-[rgba(237,237,237,0.16)]`}
|
||||
/>
|
||||
<button
|
||||
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 hover:bg-white/10 ${
|
||||
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" : ""
|
||||
}`}
|
||||
onClick={() => setActiveTab("live")}
|
||||
@@ -165,7 +165,7 @@ export function App() {
|
||||
Live
|
||||
</button>
|
||||
<button
|
||||
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 hover:bg-white/10 ${
|
||||
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" : ""
|
||||
}`}
|
||||
onClick={() => setActiveTab("media")}
|
||||
@@ -231,11 +231,11 @@ export function App() {
|
||||
|
||||
{selectedMedia && (
|
||||
<div
|
||||
className="fixed inset-0 w-screen h-screen bg-black/95 backdrop-blur-md flex items-center justify-center z-[999999] animate-fade-in"
|
||||
className="fixed inset-0 w-screen h-screen bg-black/90 backdrop-blur-md flex items-center justify-center z-[999999] animate-fade-in p-8"
|
||||
onClick={() => setSelectedMedia(null)}
|
||||
>
|
||||
<button
|
||||
className="fixed left-2 sm:left-4 top-1/2 -translate-y-1/2 glass-button rounded-full w-10 h-10 flex items-center justify-center z-[1000000] text-lg"
|
||||
className="fixed left-4 sm:left-6 top-1/2 -translate-y-1/2 glass-button rounded-full w-10 h-10 flex items-center justify-center z-[1000000] text-lg"
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
const idx = mediaList.findIndex(
|
||||
@@ -247,7 +247,7 @@ export function App() {
|
||||
‹
|
||||
</button>
|
||||
<button
|
||||
className="fixed right-2 sm:right-4 top-1/2 -translate-y-1/2 glass-button rounded-full w-10 h-10 flex items-center justify-center z-[1000000] text-lg"
|
||||
className="fixed right-4 sm:right-6 top-1/2 -translate-y-1/2 glass-button rounded-full w-10 h-10 flex items-center justify-center z-[1000000] text-lg"
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
const idx = mediaList.findIndex(
|
||||
@@ -259,13 +259,13 @@ export function App() {
|
||||
›
|
||||
</button>
|
||||
<button
|
||||
className="fixed top-2 right-2 glass-button rounded-full w-10 h-10 flex items-center justify-center z-[1000000] text-lg"
|
||||
className="fixed top-4 right-4 glass-button rounded-full w-10 h-10 flex items-center justify-center z-[1000000] text-lg"
|
||||
onClick={() => setSelectedMedia(null)}
|
||||
>
|
||||
×
|
||||
</button>
|
||||
<div
|
||||
className="fixed inset-0 w-screen h-screen flex items-center justify-center"
|
||||
className="w-full h-full flex items-center justify-center"
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
>
|
||||
{selectedMedia.type === "video" ? (
|
||||
|
||||
Reference in New Issue
Block a user