Skip to content

Commit

Permalink
fixing default css and markdown version
Browse files Browse the repository at this point in the history
  • Loading branch information
1vipulgupta committed Nov 3, 2023
1 parent d865dcf commit 029d5b3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 18 deletions.
20 changes: 10 additions & 10 deletions 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
Expand Up @@ -61,4 +61,4 @@ dioxus-signals = { git = "https://github.com/DioxusLabs/dioxus.git", rev = "6478
# https://github.com/DioxusLabs/dioxus-std/pull/17
dioxus-std = { git = "https://github.com/ealmloff/dioxus-std.git", branch="storage", features = ["storage"] }
fermi = { git = "https://github.com/DioxusLabs/dioxus.git", rev = "c7963a03440d5a050bf229f91665d60a0d108a8a" }
dioxus_markdown = { git = "https://github.com/1vipulgupta/markdown.git", rev = "2942507f77216286904bc3a23a68bf10345367f0" }
dioxus_markdown = { git = "https://github.com/1vipulgupta/markdown.git", rev = "8d99f3f0ccf6af8d43e4222907efdfbfa051a293" }
6 changes: 1 addition & 5 deletions src/app/health.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ use crate::{app::state::AppState, app::widget::Loader};

pub fn renderMarkDown<'a>(cx: Scope<'a>, string: &'a str) -> Element<'a> {
cx.render(rsx! {
link {
rel: "stylesheet",
href: "https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css",
}
div {
Markdown {
class: "content",
class: "prose",
content: string,
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async fn main() {
dioxus_desktop::launch_cfg(
app::App,
dioxus_desktop::Config::new()
.with_custom_head(r#" <link rel="stylesheet" href="tailwind.css"> "#.to_string())
.with_custom_head(r#" <link rel="stylesheet" href="assets/tailwind.css"> "#.to_string())
.with_window(
WindowBuilder::new()
.with_title("Nix Browser")
Expand Down
4 changes: 3 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ module.exports = {
}
}
},
plugins: [],
plugins: [
require('@tailwindcss/typography'),
],
}

0 comments on commit 029d5b3

Please sign in to comment.