This commit is contained in:
parent
80690df15a
commit
bf822aae5b
@ -57,18 +57,10 @@ function Grid({ frags }: { frags: Array<TimelineFragment> }) {
|
||||
/>
|
||||
)}
|
||||
{nextModalEvent && ( // preload next
|
||||
<SpotlightThreadModal
|
||||
className="hidden"
|
||||
key={`${nextModalEvent.id}-next`}
|
||||
event={nextModalEvent}
|
||||
/>
|
||||
<SpotlightThreadModal className="hidden" key={`${nextModalEvent.id}-next`} event={nextModalEvent} />
|
||||
)}
|
||||
{prevModalEvent && ( // preload previous
|
||||
<SpotlightThreadModal
|
||||
className="hidden"
|
||||
key={`${prevModalEvent.id}-prev`}
|
||||
event={prevModalEvent}
|
||||
/>
|
||||
<SpotlightThreadModal className="hidden" key={`${prevModalEvent.id}-prev`} event={prevModalEvent} />
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
@ -36,7 +36,12 @@ export function SpotlightThreadModal(props: SpotlightThreadModalProps) {
|
||||
<ThreadContextWrapper link={link!}>
|
||||
<div className="flex flex-row h-screen w-screen">
|
||||
<div className="flex w-full md:w-2/3 items-center justify-center overflow-hidden" onClick={onClickBg}>
|
||||
<SpotlightFromEvent event={props.event || thread.root} onClose={onClose} onNext={props.onNext} onPrev={props.onPrev} />
|
||||
<SpotlightFromEvent
|
||||
event={props.event || thread.root}
|
||||
onClose={onClose}
|
||||
onNext={props.onNext}
|
||||
onPrev={props.onPrev}
|
||||
/>
|
||||
</div>
|
||||
<div className="hidden md:flex w-1/3 min-w-[400px] flex-shrink-0 overflow-y-auto bg-bg-color">
|
||||
<Thread onBack={onBack} disableSpotlight={true} />
|
||||
|
Loading…
Reference in New Issue
Block a user