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

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

View File

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