mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-17 07:49:29 +00:00
Move character counter up above editor in feedback modal
This commit is contained in:
parent
4596e7a68a
commit
63cc9e5068
1 changed files with 23 additions and 23 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue