fix(web): small posts shouldn't break or overflow

This commit is contained in:
əlemi 2024-07-04 04:17:48 +02:00
parent 51ed5368b8
commit c173064627
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 2 additions and 1 deletions

View file

@ -95,6 +95,7 @@
margin: 0 0 0 .5em;
}
article.float-container {
overflow-y: auto;
}
b.displayname {
overflow-wrap: break-word;

View file

@ -172,7 +172,7 @@ pub fn Summary(summary: Option<String>, children: Children) -> impl IntoView {
Some(summary) => view! {
<details class="pa-s" prop:open=move || !config.get().collapse_content_warnings>
<summary>
<code class="cw center color ml-s w-100">{summary}</code>
<code class="cw center color ml-s w-100 bb">{summary}</code>
</summary>
{children()}
</details>