Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Oct 21, 2023
1 parent 9645714 commit bbf6c20
Showing 1 changed file with 25 additions and 29 deletions.
54 changes: 25 additions & 29 deletions crates/components/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub struct InputProps<'a> {
#[props(default = "150".to_string(), into)]
width: String,
/// Height of the Input. Default 100.
#[props(default = "35".to_string(), into)]
#[props(default = "38".to_string(), into)]
height: String,
/// Max lines for the Input. Default 1.
#[props(default = "1".to_string(), into)]
Expand Down Expand Up @@ -154,34 +154,30 @@ pub fn Input<'a>(cx: Scope<'a, InputProps<'a>>) -> Element {
rect {
onkeydown: onkeydown,
onclick: onclick,
width: "auto",
height: "auto",
padding: "1.5",
rect {
width: "{width}",
height: "{height}",
direction: "vertical",
color: "{color}",
background: "{background}",
shadow: "0 3 15 0 rgb(0, 0, 0, 70)",
corner_radius: "5",
padding: "8",
cursor_reference: cursor_attr,
ScrollView {
scroll_with_arrows: false,
paragraph {
width: "100%",
cursor_id: "0",
cursor_index: "{cursor_char}",
cursor_mode: "editable",
cursor_color: "{color}",
max_lines: "{max_lines}",
onmouseover: onmouseover,
onmousedown: onmousedown,
highlights: highlights_attr,
text {
"{text}"
}
width: "{width}",
height: "{height}",
direction: "vertical",
color: "{color}",
background: "{background}",
shadow: "0 3 15 0 rgb(0, 0, 0, 70)",
corner_radius: "5",
padding: "8",
margin: "4",
cursor_reference: cursor_attr,
ScrollView {
scroll_with_arrows: false,
paragraph {
width: "100%",
cursor_id: "0",
cursor_index: "{cursor_char}",
cursor_mode: "editable",
cursor_color: "{color}",
max_lines: "{max_lines}",
onmouseover: onmouseover,
onmousedown: onmousedown,
highlights: highlights_attr,
text {
"{text}"
}
}
}
Expand Down

0 comments on commit bbf6c20

Please sign in to comment.