limit replying-to note size

This commit is contained in:
Martti Malmi
2024-01-10 20:54:48 +02:00
parent 51758eaf5e
commit a1f61e2d13
2 changed files with 7 additions and 3 deletions

View File

@ -614,7 +614,9 @@ export function NoteCreator() {
<h4> <h4>
<FormattedMessage defaultMessage="Reply To" id="8ED/4u" /> <FormattedMessage defaultMessage="Reply To" id="8ED/4u" />
</h4> </h4>
<Note data={note.replyTo} options={replyToNoteOptions} /> <div className="h-48 overflow-y-auto">
<Note data={note.replyTo} options={replyToNoteOptions} />
</div>
<hr className="border-border-color border-1 -mx-6" /> <hr className="border-border-color border-1 -mx-6" />
</> </>
)} )}
@ -623,7 +625,9 @@ export function NoteCreator() {
<h4> <h4>
<FormattedMessage defaultMessage="Quote Repost" id="C7642/" /> <FormattedMessage defaultMessage="Quote Repost" id="C7642/" />
</h4> </h4>
<Note data={note.quote} options={quoteNoteOptions} /> <div className="h-48 overflow-y-auto">
<Note data={note.quote} options={quoteNoteOptions} />
</div>
<hr className="border-border-color border-1 -mx-6" /> <hr className="border-border-color border-1 -mx-6" />
</> </>
)} )}

View File

@ -46,7 +46,7 @@ function Grid({ frags }: { frags: Array<TimelineFragment> }) {
<ImageGridItem <ImageGridItem
key={event.id} key={event.id}
event={event} event={event}
onClick={() => setModalEventIndex(index)} onClick={() => setModalEventIndex(index)} // TODO use constant function
waitUntilInView={index > 15} waitUntilInView={index > 15}
/> />
))} ))}