aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2024-05-19 17:44:58 +0100
committerHayleigh Thompson <me@hayleigh.dev>2024-05-19 17:44:58 +0100
commite42dfe1dc3bb5e936577bfd4ec0eae63cc7ea4dc (patch)
tree8cbccd8244ab8788ffd415081ac1ffcfd3c9081d
parent11e6552edb05772c6dd8baac2655a32ba64d2de5 (diff)
downloadlustre-e42dfe1dc3bb5e936577bfd4ec0eae63cc7ea4dc.tar.gz
lustre-e42dfe1dc3bb5e936577bfd4ec0eae63cc7ea4dc.zip
:recycle: Don't convert width/height properties to strings.
-rw-r--r--src/lustre/attribute.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lustre/attribute.gleam b/src/lustre/attribute.gleam
index 90b7963..693e538 100644
--- a/src/lustre/attribute.gleam
+++ b/src/lustre/attribute.gleam
@@ -263,12 +263,12 @@ pub fn src(uri: String) -> Attribute(msg) {
///
pub fn height(val: Int) -> Attribute(msg) {
- property("height", int.to_string(val))
+ property("height", val)
}
///
pub fn width(val: Int) -> Attribute(msg) {
- property("width", int.to_string(val))
+ property("width", val)
}
///