mirror of https://github.com/rancher/ui.git
Merge pull request #2512 from n313893254/16818
Member list is cutting off on screen
This commit is contained in:
commit
d9e5167fa9
|
|
@ -60,6 +60,7 @@
|
|||
@import "app/styles/components/nav-boxes";
|
||||
@import "app/styles/components/pipeline";
|
||||
@import "app/styles/components/logging";
|
||||
@import "app/styles/components/identity-block";
|
||||
|
||||
// Vendor
|
||||
// Pretty much what it says. Vendor specific changes/overrides or includes.
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
.identity-block {
|
||||
width: 30vw;
|
||||
.gh-block-name > div {
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,55 +1,57 @@
|
|||
{{yield}}
|
||||
{{#if avatar}}
|
||||
<div class="gh-avatar">
|
||||
{{#if principal.avatarSrc}}
|
||||
{{#if (and principal.profileURL link)}}
|
||||
<a href="{{principal.profileURL}}" target="_blank">
|
||||
<img src="{{principal.avatarSrc}}" width="{{size}}" height="{{size}}">
|
||||
</a>
|
||||
{{else}}
|
||||
<img src="{{principal.avatarSrc}}" width="{{size}}" height="{{size}}">
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<div class="gh-placeholder">
|
||||
{{#unless loading}}
|
||||
<img src="{{avatarSrc}}" width="{{size}}" height="{{size}}">
|
||||
{{/unless}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="gh-block-content">
|
||||
<div class="gh-block-name">
|
||||
{{#if loading}}
|
||||
{{t 'identityBlock.loading'}}
|
||||
{{else}}
|
||||
{{#if (and principal.profileURL link)}}
|
||||
<a href="{{principal.profileURL}}" target="_blank">{{login}}</a>
|
||||
{{else}}
|
||||
{{#if principal.displayName}}
|
||||
<div>
|
||||
{{principal.displayName}} {{#if principal.loginName }}<small>( {{principal.loginName}} )</small>{{/if}}
|
||||
</div>
|
||||
{{else if principal.loginName}}
|
||||
{{principal.loginName}}
|
||||
{{else if unknownUser}}
|
||||
<span class="text-error">{{t 'generic.unknownUser'}}</span>
|
||||
<div class="identity-block">
|
||||
{{#if avatar}}
|
||||
<div class="gh-avatar">
|
||||
{{#if principal.avatarSrc}}
|
||||
{{#if (and principal.profileURL link)}}
|
||||
<a href="{{principal.profileURL}}" target="_blank">
|
||||
<img src="{{principal.avatarSrc}}" width="{{size}}" height="{{size}}">
|
||||
</a>
|
||||
{{else}}
|
||||
|
||||
<img src="{{principal.avatarSrc}}" width="{{size}}" height="{{size}}">
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<div class="gh-placeholder">
|
||||
{{#unless loading}}
|
||||
<img src="{{avatarSrc}}" width="{{size}}" height="{{size}}">
|
||||
{{/unless}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="gh-block-content">
|
||||
<div class="gh-block-name">
|
||||
{{#if loading}}
|
||||
{{t 'identityBlock.loading'}}
|
||||
{{else}}
|
||||
{{#if (and principal.profileURL link)}}
|
||||
<a href="{{principal.profileURL}}" target="_blank">{{login}}</a>
|
||||
{{else}}
|
||||
{{#if principal.displayName}}
|
||||
<div>
|
||||
{{principal.displayName}}{{#if principal.loginName }}<small>( {{principal.loginName}} )</small>{{/if}}
|
||||
</div>
|
||||
{{else if principal.loginName}}
|
||||
{{principal.loginName}}
|
||||
{{else if unknownUser}}
|
||||
<span class="text-error">{{t 'generic.unknownUser'}}</span>
|
||||
{{else}}
|
||||
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="gh-block-detail text-small clip">
|
||||
{{#if principal.displayType}}
|
||||
{{principal.displayType}}
|
||||
{{else if unknownUser}}
|
||||
<span class="clip">
|
||||
{{principalId}}
|
||||
</span>
|
||||
{{else}}
|
||||
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="gh-block-detail text-small clip">
|
||||
{{#if principal.displayType}}
|
||||
{{principal.displayType}}
|
||||
{{else if unknownUser}}
|
||||
<span class="clip">
|
||||
{{principalId}}
|
||||
</span>
|
||||
{{else}}
|
||||
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue