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! {
|
html! {
|
||||||
<div class={classes!("flex", "uppercase", "text-sm",
|
<div class={classes!("flex", "uppercase", "text-sm",
|
||||||
if horizontal {
|
if horizontal {
|
||||||
"flex-row justify-between"
|
"flex-col md:flex-row md:justify-between"
|
||||||
} else {
|
} else {
|
||||||
"flex-col"
|
"flex-col"
|
||||||
})}>
|
})}>
|
||||||
|
@ -41,7 +41,7 @@ pub fn post_content<S: PartialEq>(props: &PostContentProps<S>) -> Html {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</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! {
|
props.content.iter().map(|node| html! {
|
||||||
<Render node={node.clone()} />
|
<Render node={node.clone()} />
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
@apply w-full mb-8 flex flex-col items-center;
|
@apply w-full mb-8 flex flex-col items-center;
|
||||||
|
|
||||||
pre {
|
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 {
|
code {
|
||||||
@apply font-mono leading-snug;
|
@apply font-mono leading-snug;
|
||||||
|
Loading…
Reference in New Issue
Block a user