Skip to content

Commit

Permalink
Center the "Hide Output Details" button
Browse files Browse the repository at this point in the history
And some other small tweaks
  • Loading branch information
spejamchr committed Nov 4, 2024
1 parent b04600f commit a314ed5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ and I wanted to see what numbers would look like in base-`e`. Also, I wanted to
## Running Locally

This site uses Rust `nightly` and requires that you've installed the `wasm` compilation target for
your toolchain.
your toolchain. See [getting started with
Leptos](https://book.leptos.dev/getting_started/index.html).

If you don't have Rust nightly, you can install it with

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<!-- Add a plain CSS file: see https://trunkrs.dev/assets/#css -->
<!-- If using Tailwind with Leptos CSR, see https://trunkrs.dev/assets/#tailwind instead-->
<link data-trunk rel="css" rel="stylesheet" href="public/styles.css" />
<link data-trunk rel="css" href="public/styles.css" />

<!-- Include favicon in dist output: see https://trunkrs.dev/assets/#icon -->
<link data-trunk rel="icon" href="public/favicon.ico" />
Expand Down
1 change: 0 additions & 1 deletion public/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,4 @@ button {
margin-left: auto;
margin-right: auto;
text-align: center;
margin: 2rem;
}
5 changes: 3 additions & 2 deletions src/components/output_details/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ where
div()
.child(
button()
.classes("mx-auto")
.on(ev::click, move |_| close())
.child("Hide Output Details"),
)
Expand All @@ -98,7 +99,7 @@ where
.child(
tr().child(
td().classes("align-end")
.child("The number in base-")
.child("Write the number in base-")
.child(move || rounded_bignum(base(), None)),
)
.child(
Expand All @@ -110,7 +111,7 @@ where
.child(
tr().child(
td().classes("align-end")
.child("The first digit(s) of the number"),
.child("Separate the leading digit(s) of the number"),
)
.child(move || {
let mut gena = td_classes_generator();
Expand Down

0 comments on commit a314ed5

Please sign in to comment.