chore: maybe this?

This commit is contained in:
Alexander Medvedev 2026-04-07 09:31:18 +02:00
parent d5686e1390
commit 5ee13a9326
2 changed files with 12 additions and 10 deletions

View File

@ -524,12 +524,14 @@ h1, h2, h3 { font-weight: 900; letter-spacing: -1px; }
}
.main-screenshot {
width: 100%;
max-height: 400px;
object-fit: contain; /* Changed to contain */
border-radius: 12px;
margin-bottom: 1rem;
border: 1px solid var(--border);
border-radius: 8px;
transition: opacity 0.2s;
}
.main-screenshot:hover {
opacity: 0.9;
}
.thumbnail-strip {
display: flex;
gap: 1rem;

View File

@ -351,7 +351,7 @@ const PluginDetail = () => {
src={mainScreenshot || plugin.screenshots[0].path}
alt="Main"
className="main-screenshot"
style={{ cursor: 'zoom-in' }} // Suggests it can be expanded
style={{ cursor: 'pointer' }}
onClick={() => setLightboxImage(mainScreenshot || plugin.screenshots[0].path)}
/>
<div className="thumbnail-strip">
@ -611,9 +611,9 @@ const PluginDetail = () => {
{/* LIGHTBOX MODAL */}
{lightboxImage && (
<div className="lightbox-overlay" onClick={() => setLightboxImage(null)}>
<div className="lightbox-content">
<img src={lightboxImage} alt="Expanded" />
<button className="lightbox-close">×</button>
<div className="lightbox-content" onClick={(e) => e.stopPropagation()}>
<img src={lightboxImage} alt="Expanded view" className="lightbox-img" />
<button className="lightbox-close" onClick={() => setLightboxImage(null)}>×</button>
</div>
</div>
)}