Skip to content
Snippets Groups Projects
Commit c3f7ef71 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Revert "Shorten username if chevron becomes invisible"

This reverts commit 1416d0ac942c8bf6f6d52efc03f9f59e6087b2fe.
parent 4ad677e4
No related branches found
No related tags found
No related merge requests found
...@@ -413,13 +413,6 @@ export class Auth extends ScopedElementsMixin(VPULitElement) { ...@@ -413,13 +413,6 @@ export class Auth extends ScopedElementsMixin(VPULitElement) {
.loginbox .label { .loginbox .label {
padding-left: 0.2em; padding-left: 0.2em;
} }
.ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
}
`; `;
} }
...@@ -452,13 +445,12 @@ export class Auth extends ScopedElementsMixin(VPULitElement) { ...@@ -452,13 +445,12 @@ export class Auth extends ScopedElementsMixin(VPULitElement) {
renderLoggedIn() { renderLoggedIn() {
const imageURL = (this.showImage && this.person && this.person.image) ? this.person.image : null; const imageURL = (this.showImage && this.person && this.person.image) ? this.person.image : null;
const w = window.innerWidth/2 - 20 - 40;
return html` return html`
<div class="dropdown" @click="${this.onDropdownClick}"> <div class="dropdown" @click="${this.onDropdownClick}">
<div class="dropdown-trigger"> <div class="dropdown-trigger">
<a href="#"> <a href="#">
<div class="ellipsis" style="max-width: ${w}px;">${this.name}</div> <span>${this.name}</span>
<vpu-icon name="chevron-down" id="menu-chevron-icon"></vpu-icon> <vpu-icon name="chevron-down" id="menu-chevron-icon"></vpu-icon>
</a> </a>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment