Skip to content

Commit

Permalink
chore: Update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalmi committed Dec 20, 2023
1 parent 80690df commit bf822aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
12 changes: 2 additions & 10 deletions packages/app/src/Element/Feed/TimelineRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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} />
)}
</>
);
Expand Down
9 changes: 7 additions & 2 deletions packages/app/src/Element/Spotlight/SpotlightThreadModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ThreadContextWrapper } from "@/Hooks/useThreadContext";
import { Thread } from "@/Element/Event/Thread";
import { useContext } from "react";
import { SpotlightMedia } from "@/Element/Spotlight/SpotlightMedia";
import {NostrLink, TaggedNostrEvent} from "@snort/system";
import { NostrLink, TaggedNostrEvent } from "@snort/system";
import getEventMedia from "@/Element/Event/getEventMedia";

interface SpotlightThreadModalProps {
Expand Down Expand Up @@ -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} />
Expand Down

0 comments on commit bf822aa

Please sign in to comment.