chore: Update translations

This commit is contained in:
Martti Malmi 2023-12-20 10:34:53 +00:00
parent 80690df15a
commit bf822aae5b
2 changed files with 9 additions and 12 deletions

View File

@ -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} />
)}
</>
);

View File

@ -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} />