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/nav-boxes";
|
||||||
@import "app/styles/components/pipeline";
|
@import "app/styles/components/pipeline";
|
||||||
@import "app/styles/components/logging";
|
@import "app/styles/components/logging";
|
||||||
|
@import "app/styles/components/identity-block";
|
||||||
|
|
||||||
// Vendor
|
// Vendor
|
||||||
// Pretty much what it says. Vendor specific changes/overrides or includes.
|
// 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}}
|
{{yield}}
|
||||||
{{#if avatar}}
|
<div class="identity-block">
|
||||||
<div class="gh-avatar">
|
{{#if avatar}}
|
||||||
{{#if principal.avatarSrc}}
|
<div class="gh-avatar">
|
||||||
{{#if (and principal.profileURL link)}}
|
{{#if principal.avatarSrc}}
|
||||||
<a href="{{principal.profileURL}}" target="_blank">
|
{{#if (and principal.profileURL link)}}
|
||||||
<img src="{{principal.avatarSrc}}" width="{{size}}" height="{{size}}">
|
<a href="{{principal.profileURL}}" target="_blank">
|
||||||
</a>
|
<img src="{{principal.avatarSrc}}" width="{{size}}" height="{{size}}">
|
||||||
{{else}}
|
</a>
|
||||||
<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}}
|
{{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}}
|
{{/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>
|
||||||
<div class="gh-block-detail text-small clip">
|
</div>
|
||||||
{{#if principal.displayType}}
|
|
||||||
{{principal.displayType}}
|
|
||||||
{{else if unknownUser}}
|
|
||||||
<span class="clip">
|
|
||||||
{{principalId}}
|
|
||||||
</span>
|
|
||||||
{{else}}
|
|
||||||
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
Loading…
Reference in New Issue