Switch over to WebAssembly, Rust and Yew #35
@ -56,7 +56,7 @@ pub fn post_card_details<S>(horizontal: bool, info: &Details<S>, tags: &TagsCont
|
||||
html! {
|
||||
<div class={classes!("flex", "uppercase", "text-sm",
|
||||
if horizontal {
|
||||
"flex-row justify-between"
|
||||
"flex-col md:flex-row md:justify-between"
|
||||
} else {
|
||||
"flex-col"
|
||||
})}>
|
||||
|
@ -41,7 +41,7 @@ pub fn post_content<S: PartialEq>(props: &PostContentProps<S>) -> Html {
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container mx-auto my-12 px-16 markdown">
|
||||
<div class="container mx-auto mt-12 mb-20 px-16 markdown">
|
||||
{
|
||||
props.content.iter().map(|node| html! {
|
||||
<Render node={node.clone()} />
|
||||
|
@ -84,7 +84,7 @@
|
||||
@apply w-full mb-8 flex flex-col items-center;
|
||||
|
||||
pre {
|
||||
@apply w-full bg-neutral-100 dark:bg-neutral-800 rounded-md p-4;
|
||||
@apply w-full bg-neutral-100 dark:bg-neutral-800 rounded-md p-4 overflow-x-scroll;
|
||||
|
||||
code {
|
||||
@apply font-mono leading-snug;
|
||||
|
Loading…
Reference in New Issue
Block a user