mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 05:47:31 +08:00
UX: Fix user onebox layout (#21284)
This commit is contained in:
parent
69696843c6
commit
a67c96438c
|
@ -268,6 +268,16 @@ aside.onebox {
|
|||
.location {
|
||||
margin-right: 10px;
|
||||
}
|
||||
.user-onebox--joined {
|
||||
color: var(--primary-medium);
|
||||
margin-top: 10px;
|
||||
}
|
||||
.aspect-image {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
float: left;
|
||||
margin-right: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
// instagram + reddit fixes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<aside class="onebox">
|
||||
<article class="onebox-body user-onebox">
|
||||
{{{avatar}}}
|
||||
<h3><a href="{{original_url}}">{{{username}}}</a></h3>
|
||||
<h3><a href="{{original_url}}">@{{{username}}}</a></h3>
|
||||
<div>
|
||||
{{#name}}
|
||||
<span class="full-name">{{name}}</span>
|
||||
|
@ -26,7 +26,7 @@
|
|||
{{#bio}}
|
||||
<p>{{{bio}}}</p>
|
||||
{{/bio}}
|
||||
<span>{{joined}}</span>
|
||||
<div class="user-onebox--joined">{{joined}}</div>
|
||||
</article>
|
||||
<div class="clearfix"></div>
|
||||
</aside>
|
||||
|
|
|
@ -455,7 +455,7 @@ module Oneboxer
|
|||
args = {
|
||||
user_id: user.id,
|
||||
username: user.username,
|
||||
avatar: PrettyText.avatar_img(user.avatar_template, "extra_large"),
|
||||
avatar: PrettyText.avatar_img(user.avatar_template, "huge"),
|
||||
name: name,
|
||||
bio: user.user_profile.bio_excerpt(230),
|
||||
location: Onebox::Helpers.sanitize(user.user_profile.location),
|
||||
|
|
Loading…
Reference in New Issue
Block a user