diff options
Diffstat (limited to 'lib/xesite_markdown')
| -rw-r--r-- | lib/xesite_markdown/Cargo.toml | 5 | ||||
| -rw-r--r-- | lib/xesite_markdown/src/lib.rs | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/xesite_markdown/Cargo.toml b/lib/xesite_markdown/Cargo.toml index bc4abb5..ad84700 100644 --- a/lib/xesite_markdown/Cargo.toml +++ b/lib/xesite_markdown/Cargo.toml @@ -22,6 +22,7 @@ xesite_templates = { path = "../xesite_templates" } xesite_types = { path = "../xesite_types" } [dependencies.maud] -git = "https://github.com/Xe/maud" -rev = "a40596c42c7603cc4610bbeddea04c4bd8b312d9" +version = "0.25" +#git = "https://github.com/Xe/maud" +#rev = "a40596c42c7603cc4610bbeddea04c4bd8b312d9" features = ["axum"] diff --git a/lib/xesite_markdown/src/lib.rs b/lib/xesite_markdown/src/lib.rs index 40d85ab..96cdb09 100644 --- a/lib/xesite_markdown/src/lib.rs +++ b/lib/xesite_markdown/src/lib.rs @@ -121,11 +121,11 @@ pub fn render(inp: &str) -> Result<String> { el.before( &format!( r#" -<div class="conversation"> - <div class="{class}"> +<div class="conversation my-4 flex space-x-4 rounded-md border border-solid border-gray-200 bg-gray-100 p-3 dark:border-gray-700 dark:bg-gray-800"> + <div class="{class} flex h-16 w-16 shrink-0 items-center justify-center self-center overflow-hidden rounded-lg bg-gray-200 dark:bg-gray-700"> <img src="https://cdn.xeiaso.net/sticker/{name_lower}/{mood}/{size}" alt="{name} is {mood}"> </div> - <div class="conversation-chat"><<a href="/characters#{name_lower}"><b>{name}</b></a>> "# + <div class="conversation-chat min-w-0 self-center"><<a href="/characters#{name_lower}"><b>{name}</b></a>> "# ), ContentType::Html, ); |
