chore: maybe this?
This commit is contained in:
parent
d5686e1390
commit
5ee13a9326
14
src/App.css
14
src/App.css
@ -523,13 +523,15 @@ h1, h2, h3 { font-weight: 900; letter-spacing: -1px; }
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
.main-screenshot {
|
||||
width: 100%;
|
||||
max-height: 400px;
|
||||
object-fit: contain; /* Changed to contain */
|
||||
border-radius: 12px;
|
||||
margin-bottom: 1rem;
|
||||
border: 1px solid var(--border);
|
||||
width: 100%;
|
||||
border-radius: 8px;
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
|
||||
.main-screenshot:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.thumbnail-strip {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
|
||||
@ -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>
|
||||
)}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user