feat: code component font size

This commit is contained in:
luoxiao 2023-10-08 17:34:25 +08:00
parent 63197db239
commit 550c87727d
2 changed files with 5 additions and 0 deletions

3
src/code/code.css Normal file
View file

@ -0,0 +1,3 @@
.melt-code {
font-size: 14px;
}

View file

@ -1,6 +1,8 @@
use leptos::*;
use crate::utils::mount_style::mount_style;
#[component]
pub fn Code(children: Children) -> impl IntoView {
mount_style("code", include_str!("./code.css"));
view! { <code class="melt-code">{children()}</code> }
}