Skip to content

Commit

Permalink
feat: implement responsive style for mobile (#5)
Browse files Browse the repository at this point in the history
* feat: implement responsive style for mobile

* build: bump version
  • Loading branch information
cr0sh authored Jul 16, 2023
1 parent 1b3cc59 commit dc7bbc3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "syn-debugger-web"
version = "0.1.2"
version = "0.2.0"
edition = "2021"
description = "A syntax debugger for procedural macro developers, powered by Syn and Yew."
readme = "README.md"
Expand Down
8 changes: 4 additions & 4 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ pub fn app() -> Html {
html! {
<main>
<div class={ classes!("flex", "flex-col", "items-stretch", "px-20", "py-10", "h-screen") }>
<h1 class={ classes!("py-5", "text-xl") }>{ format!("syn-debugger-web v{}", env!("CARGO_PKG_VERSION")) }</h1>
<div class={ classes!("flex", "flex-row", "grow", "h-4/5") }>
<div class={ classes!("flex", "flex-col", "px-5", "text-md", "w-1/2") }>
<h1 class={ classes!("py-5", "text-2xl") }>{ format!("syn-debugger-web v{}", env!("CARGO_PKG_VERSION")) }</h1>
<div class={ classes!("flex", "text-xl", "lg:text-md", "flex-col", "lg:flex-row", "grow", "w-full", "h-4/5") }>
<div class={ classes!("flex", "flex-col", "px-5", "text-md", "w-full", "lg:w-1/2", "h-1/2", "lg:h-full") }>
<Input {input_ref} onchange={onchange.clone()}/>
</div>
<div class={ classes!("flex", "flex-col", "px-5", "text-md", "w-1/2") }>
<div class={ classes!("flex", "flex-col", "px-5", "text-md", "w-full", "lg:w-1/2", "h-1/2", "lg:h-full") }>
<Output output={input_value} {parse_method} {onchange}/>
</div>
</div>
Expand Down

0 comments on commit dc7bbc3

Please sign in to comment.