Skip to content

Commit bc08883

Browse files
committed
Update formatting for 1080p screens
Modal should no longer scroll when display is 1080p
1 parent 07179bf commit bc08883

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

app/ui/modal.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,18 @@ export default function Modal({ slug, onClose }: { slug: string; onClose: () =>
4747

4848
return (
4949
<div onClick={onClose} className="fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-4">
50-
<article onClick={e=>e.stopPropagation()} className="w-full max-w-[90vw] sm:max-w-xl md:max-w-2xl lg:max-w-3xl xl:max-w-4xl max-h-[70vh] overflow-y-auto overscroll-contain bg-neutral-900 rounded-lg shadow-xl ring-1 ring-neutral-700/60">
50+
<article
51+
onClick={e => e.stopPropagation()}
52+
className="
53+
w-full
54+
max-w-[90vw] sm:max-w-xl md:max-w-2xl lg:max-w-3xl xl:max-w-4xl
55+
max-h-[70vh]
56+
lg:max-h-[80vh]
57+
xl:max-h-[85vh]
58+
2xl:max-h-[90vh]
59+
overflow-y-auto overscroll-contain
60+
bg-neutral-900 rounded-lg shadow-xl ring-1 ring-neutral-700/60
61+
">
5162
{/* Header */}
5263
<div
5364
className="
@@ -69,7 +80,7 @@ export default function Modal({ slug, onClose }: { slug: string; onClose: () =>
6980

7081
{/* Download (never shrink) */}
7182
<DownloadButton
72-
href={`/Source_Skyboxes_NextJS/skyboxes/${slug}/downloads/${slug}.7z`}
83+
href={`/Source_Skyboxes_NextJS/skyboxes/${slug}/download/${slug}.7z`}
7384
download
7485
size={meta?.fileSize}
7586
className="flex-shrink-0" /* ⬅️ keeps the button’s width */

0 commit comments

Comments
 (0)