fix(web): better wrapping
This commit is contained in:
parent
1c86110ed4
commit
46873b2f4c
3 changed files with 10 additions and 8 deletions
|
@ -95,7 +95,6 @@
|
|||
margin: 0 0 0 .5em;
|
||||
}
|
||||
article.float-container {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
b.displayname {
|
||||
overflow-wrap: break-word;
|
||||
|
|
|
@ -217,7 +217,8 @@ impl Uri {
|
|||
bare
|
||||
} else {
|
||||
format!("{}..", bare.get(..len).unwrap_or_default())
|
||||
}.replace('/', "\u{200B}/\u{200B}")
|
||||
}
|
||||
//.replace('/', "\u{200B}/\u{200B}")
|
||||
}
|
||||
|
||||
pub fn short(url: &str) -> String {
|
||||
|
|
|
@ -60,7 +60,7 @@ pub fn Object(
|
|||
let audience_badge = object.audience().id().str()
|
||||
.map(|x| view! {
|
||||
<a class="clean dim" href={Uri::web(U::Actor, &x)}>
|
||||
<span class="border-button ml-1" title={x.clone()}>
|
||||
<span class="border-button ml-s" title={x.clone()}>
|
||||
<code class="color mr-s">&</code>
|
||||
<small class="mr-s">
|
||||
{Uri::pretty(&x, 30)}
|
||||
|
@ -75,13 +75,13 @@ pub fn Object(
|
|||
let href = Uri::web(U::Hashtag, &name);
|
||||
Some(view! {
|
||||
<a class="clean dim" href={href}>
|
||||
<span class="border-button ml-1">
|
||||
<span class="border-button ml-s">
|
||||
<code class="color mr-s">#</code>
|
||||
<small class="mr-s">
|
||||
{name}
|
||||
</small>
|
||||
</span>
|
||||
</a>
|
||||
</a>" "
|
||||
})
|
||||
} else {
|
||||
None
|
||||
|
@ -155,9 +155,11 @@ pub fn Object(
|
|||
<div class="mt-s ml-1 rev">
|
||||
{if !reply { Some(hashtag_badges) } else { None }}
|
||||
{if !reply { audience_badge } else { None }}
|
||||
<ReplyButton n=comments target=oid.clone() />
|
||||
<LikeButton n=likes liked=already_liked target=oid.clone() author=author_id private=!public />
|
||||
<RepostButton n=shares target=oid />
|
||||
<span style="white-space:nowrap">
|
||||
<ReplyButton n=comments target=oid.clone() />
|
||||
<LikeButton n=likes liked=already_liked target=oid.clone() author=author_id private=!public />
|
||||
<RepostButton n=shares target=oid />
|
||||
</span>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue