fix: layout class

This commit is contained in:
luoxiao 2023-12-25 21:35:28 +08:00
parent c9db5b3dd4
commit f42acc2612

View file

@ -52,7 +52,7 @@ pub fn Layout(
fn gen_class(position: LayoutPosition) -> String {
let mut class = String::from("thaw-layout");
if position == LayoutPosition::Absolute {
class.push_str("thaw-layout--absolute-positioned");
class.push_str(" thaw-layout--absolute-positioned");
}
class
}