diff --git a/app/styles/_rancher.scss b/app/styles/_rancher.scss index 1d5f2c2bf..ef92ab0a4 100644 --- a/app/styles/_rancher.scss +++ b/app/styles/_rancher.scss @@ -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. diff --git a/app/styles/components/_identity-block.scss b/app/styles/components/_identity-block.scss new file mode 100644 index 000000000..503599584 --- /dev/null +++ b/app/styles/components/_identity-block.scss @@ -0,0 +1,8 @@ +.identity-block { + width: 30vw; + .gh-block-name > div { + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + } +} \ No newline at end of file diff --git a/lib/shared/addon/components/identity-block/template.hbs b/lib/shared/addon/components/identity-block/template.hbs index b4901f7a6..b8ffdc959 100644 --- a/lib/shared/addon/components/identity-block/template.hbs +++ b/lib/shared/addon/components/identity-block/template.hbs @@ -1,55 +1,57 @@ {{yield}} -{{#if avatar}} -
- {{#if principal.avatarSrc}} - {{#if (and principal.profileURL link)}} - - - - {{else}} - - {{/if}} - {{else}} -
- {{#unless loading}} - - {{/unless}} -
- {{/if}} -
-{{/if}} - -
-
- {{#if loading}} - {{t 'identityBlock.loading'}} - {{else}} - {{#if (and principal.profileURL link)}} - {{login}} - {{else}} - {{#if principal.displayName}} -
- {{principal.displayName}} {{#if principal.loginName }}( {{principal.loginName}} ){{/if}} -
- {{else if principal.loginName}} - {{principal.loginName}} - {{else if unknownUser}} - {{t 'generic.unknownUser'}} +
+ {{#if avatar}} +
+ {{#if principal.avatarSrc}} + {{#if (and principal.profileURL link)}} + + + {{else}} -   + + {{/if}} + {{else}} +
+ {{#unless loading}} + + {{/unless}} +
+ {{/if}} +
+ {{/if}} + +
+
+ {{#if loading}} + {{t 'identityBlock.loading'}} + {{else}} + {{#if (and principal.profileURL link)}} + {{login}} + {{else}} + {{#if principal.displayName}} +
+ {{principal.displayName}}{{#if principal.loginName }}( {{principal.loginName}} ){{/if}} +
+ {{else if principal.loginName}} + {{principal.loginName}} + {{else if unknownUser}} + {{t 'generic.unknownUser'}} + {{else}} +   + {{/if}} {{/if}} {{/if}} - {{/if}} +
+
+ {{#if principal.displayType}} + {{principal.displayType}} + {{else if unknownUser}} + + {{principalId}} + + {{else}} +   + {{/if}} +
-
- {{#if principal.displayType}} - {{principal.displayType}} - {{else if unknownUser}} - - {{principalId}} - - {{else}} -   - {{/if}} -
-
+
\ No newline at end of file