diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/xesite_markdown/Cargo.toml | 5 | ||||
| -rw-r--r-- | lib/xesite_markdown/src/lib.rs | 6 | ||||
| -rw-r--r-- | lib/xesite_templates/Cargo.toml | 5 | ||||
| -rw-r--r-- | lib/xesite_templates/src/lib.rs | 6 |
4 files changed, 12 insertions, 10 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, ); diff --git a/lib/xesite_templates/Cargo.toml b/lib/xesite_templates/Cargo.toml index dbfa1d3..eb7ba11 100644 --- a/lib/xesite_templates/Cargo.toml +++ b/lib/xesite_templates/Cargo.toml @@ -12,6 +12,7 @@ uuid = { version = "1", features = [ "v4" ] } 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_templates/src/lib.rs b/lib/xesite_templates/src/lib.rs index f5219d9..e097136 100644 --- a/lib/xesite_templates/src/lib.rs +++ b/lib/xesite_templates/src/lib.rs @@ -60,15 +60,15 @@ pub fn conv(name: String, mood: String, body: Markup) -> Markup { let name = name.replace("_", " "); html! { - .conversation { - ."conversation-standalone" { + ."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" { + ."conversation-standalone flex h-16 w-16 shrink-0 items-center justify-center self-center overflow-hidden rounded-lg bg-gray-200 dark:bg-gray-700" { picture { source type="image/avif" srcset={"https://cdn.xeiaso.net/file/christine-static/stickers/" (name_lower) "/" (mood) ".avif"}; source type="image/webp" srcset={"https://cdn.xeiaso.net/file/christine-static/stickers/" (name_lower) "/" (mood) ".webp"}; img style="max-height:4.5rem" alt={(name) " is " (mood)} loading="lazy" src={"https://cdn.xeiaso.net/file/christine-static/stickers/" (name_lower) "/" (mood) ".png"}; } } - ."conversation-chat" { + ."conversation-chat min-w-0 self-center" { "<" a href={"/characters#" (name_lower)} { b { (name) } } "> " |
