This commit is contained in:
2026-06-07 17:18:11 +07:00
parent 57a129fa93
commit 04983be23f
3 changed files with 46 additions and 49 deletions

View File

@@ -10,8 +10,8 @@ use gpui::{
AnyElement, App, AppContext, ClipboardItem, Context, Entity, EventEmitter, FocusHandle,
Focusable, InteractiveElement, IntoElement, ListAlignment, ListOffset, ListState, MouseButton,
ObjectFit, ParentElement, PathPromptOptions, Render, SharedString, SharedUri,
StatefulInteractiveElement, Styled, StyledImage, Subscription, Task, WeakEntity, Window,
deferred, div, img, list, px, red, relative, svg, white,
StatefulInteractiveElement, Styled, StyledImage, Subscription, Task, WeakEntity, Window, div,
img, list, px, red, relative, svg, white,
};
use itertools::Itertools;
use nostr_sdk::prelude::*;
@@ -889,7 +889,7 @@ impl ChatPanel {
)
.child(message.created_at.to_human_time())
.when(has_reports, |this| {
this.child(deferred(self.render_sent_reports(&id, cx)))
this.child(self.render_sent_reports(&id, cx))
}),
)
.when(has_replies, |this| {
@@ -1534,7 +1534,7 @@ impl Render for ChatPanel {
this.upload(window, cx);
})),
)
.child(Input::new(&self.input).appearance(false).text_sm().flex_1())
.child(Input::new(&self.input).appearance(false).flex_1())
.child(
h_flex()
.pl_1()