mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 01:56:39 +02:00
Elide long usernames in injected code
This commit is contained in:
parent
051019a57a
commit
17a0dd2a76
1 changed files with 5 additions and 0 deletions
|
@ -193,6 +193,11 @@
|
|||
var navbarBrandElement = document.getElementsByClassName('navbar-brand')[0];
|
||||
var purchasesElement = document.createElement('a');
|
||||
var dropDownElement = document.getElementById('user-dropdown');
|
||||
|
||||
$('#user-dropdown').find('.username')[0].style = "max-width:80px;white-space:nowrap;overflow:hidden;" +
|
||||
"text-overflow:ellipsis;display:inline-block;position:relative;top:4px;";
|
||||
$('#user-dropdown').find('.caret')[0].style = "position:relative;top:-3px;";
|
||||
|
||||
purchasesElement.id = "purchasesButton";
|
||||
purchasesElement.setAttribute('href', "#");
|
||||
purchasesElement.innerHTML = "My Purchases";
|
||||
|
|
Loading…
Reference in a new issue