Move character counter up above editor in feedback modal

This commit is contained in:
Joseph T. Lyons 2023-12-08 13:07:16 -05:00
parent 4596e7a68a
commit 63cc9e5068

View file

@ -301,18 +301,6 @@ impl Render for FeedbackModal {
// TODO: Add Headline component to `ui2` // TODO: Add Headline component to `ui2`
div().text_xl().child("Share Feedback"), div().text_xl().child("Share Feedback"),
)) ))
.child(
div()
.flex_1()
.bg(cx.theme().colors().editor_background)
.p_2()
.border()
.rounded_md()
.border_color(cx.theme().colors().border)
.child(self.feedback_editor.clone()),
)
.child(
div()
.child( .child(
Label::new(if self.character_count < *FEEDBACK_CHAR_LIMIT.start() { Label::new(if self.character_count < *FEEDBACK_CHAR_LIMIT.start() {
format!( format!(
@ -336,6 +324,18 @@ impl Render for FeedbackModal {
Color::Error Color::Error
}), }),
) )
.child(
div()
.flex_1()
.bg(cx.theme().colors().editor_background)
.p_2()
.border()
.rounded_md()
.border_color(cx.theme().colors().border)
.child(self.feedback_editor.clone()),
)
.child(
div()
.child( .child(
h_stack() h_stack()
.bg(cx.theme().colors().editor_background) .bg(cx.theme().colors().editor_background)