chore: make so you can zoom screenshots
This commit is contained in:
parent
fbcc277138
commit
d5686e1390
@ -469,6 +469,14 @@ h1, h2, h3 { font-weight: 900; letter-spacing: -1px; }
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.75rem;
|
gap: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-download-main {
|
||||||
|
width: 100%; /* Makes it fill the entire sidebar width */
|
||||||
|
padding: 16px; /* Optional: makes it slightly taller/chunkier */
|
||||||
|
font-size: 1rem; /* Optional: makes the text more prominent */
|
||||||
|
margin-bottom: 12px; /* Spacing between this and the GitHub link */
|
||||||
|
}
|
||||||
|
|
||||||
.stat-item {
|
.stat-item {
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
|
|||||||
@ -70,6 +70,7 @@ const PluginDetail = () => {
|
|||||||
const [reviewForm, setReviewForm] = useState({ rating: 5, comment: '' });
|
const [reviewForm, setReviewForm] = useState({ rating: 5, comment: '' });
|
||||||
const [adShown, setAdShown] = useState(false);
|
const [adShown, setAdShown] = useState(false);
|
||||||
const [mainScreenshot, setMainScreenshot] = useState<string | null>(null);
|
const [mainScreenshot, setMainScreenshot] = useState<string | null>(null);
|
||||||
|
const [lightboxImage, setLightboxImage] = useState<string | null>(null);
|
||||||
const [selectedLanguage] = useState('en');
|
const [selectedLanguage] = useState('en');
|
||||||
const [currentDescription, setCurrentDescription] = useState('');
|
const [currentDescription, setCurrentDescription] = useState('');
|
||||||
const [setLoading] = useState(true);
|
const [setLoading] = useState(true);
|
||||||
@ -350,6 +351,8 @@ 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
|
||||||
|
onClick={() => setLightboxImage(mainScreenshot || plugin.screenshots[0].path)}
|
||||||
/>
|
/>
|
||||||
<div className="thumbnail-strip">
|
<div className="thumbnail-strip">
|
||||||
{plugin.screenshots.map((shot: any) => (
|
{plugin.screenshots.map((shot: any) => (
|
||||||
@ -604,6 +607,16 @@ const PluginDetail = () => {
|
|||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* 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>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user