forked from alemi/upub
fix(web): small posts shouldn't break or overflow
This commit is contained in:
parent
51ed5368b8
commit
c173064627
2 changed files with 2 additions and 1 deletions
|
@ -95,6 +95,7 @@
|
|||
margin: 0 0 0 .5em;
|
||||
}
|
||||
article.float-container {
|
||||
overflow-y: auto;
|
||||
}
|
||||
b.displayname {
|
||||
overflow-wrap: break-word;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue