Skip to content

Commit

Permalink
name spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
stonedDiscord committed Apr 11, 2024
1 parent f5d2c77 commit 9932189
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions webAO/dom/resizeChatbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ export function resizeChatbox() {
const trackstatus = <HTMLMarqueeElement>(document.getElementById("client_trackstatustext"));
trackstatus.style.width = (trackstatus.offsetWidth - 1) + "px";

//name spacing
const namePlate = document.getElementById("client_name");
if (CHATBOX == "aa" && namePlate.innerText.length<5) {
namePlate.style.letterSpacing = "0.2em";
}else{
namePlate.style.letterSpacing = "normal";
}

//clock
const now = new Date();
Expand Down
2 changes: 1 addition & 1 deletion webAO/styles/chatbox/aa.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
background: rgba(60, 85, 255, 0.4);
box-shadow: 0.075em 0.075em rgba(0, 56, 163, 0.5) inset;
margin: 0;
padding-top: 0.4%;
padding-top: 0.5%;
padding-left: 1.955%;
padding-right: 1.955%;
border-color: rgba(255, 255, 255, 0.5);
Expand Down

0 comments on commit 9932189

Please sign in to comment.