Skip to content

Commit

Permalink
Kd/fix team avatar aspect ratio (#14200)
Browse files Browse the repository at this point in the history
* Add org member avatar to text data for fixed width

* set min-width to prevent single char lines
  • Loading branch information
kdumontnu committed Jan 3, 2021
1 parent 9cc5a89 commit 4092c04
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 5 additions & 5 deletions templates/org/member/members.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<div class="list">
{{ range .Members}}
<div class="item ui grid">
<div class="ui one wide column">
<div class="ui four wide column" style="display: flex;">
{{avatar . 48}}
</div>
<div class="ui three wide column">
<div class="meta"><a href="{{.HomeLink}}">{{.Name}}</a></div>
<div class="meta">{{.FullName}}</div>
<div>
<div class="meta"><a href="{{.HomeLink}}">{{.Name}}</a></div>
<div class="meta">{{.FullName}}</div>
</div>
</div>
<div class="ui four wide column center">
<div class="meta">
Expand Down
6 changes: 5 additions & 1 deletion web_src/less/_organization.less
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,15 @@

.ui.avatar {
width: 48px;
height: 48px;
height: auto;
margin-right: 1rem;
align-self: flex-start;
}

.meta {
line-height: 24px;
word-break: break-word;
min-width: 2em;
}
}
}
Expand Down

0 comments on commit 4092c04

Please sign in to comment.