From 73346f6e281bc59713381688f30325aea2039890 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Wed, 10 Aug 2022 00:09:40 +0200 Subject: add DR2 music to theme --- webAO/client.ts | 3 +++ webAO/styles/chatbox/chatdr2.css | 9 ++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'webAO') diff --git a/webAO/client.ts b/webAO/client.ts index 5444a1b..5cee9bf 100644 --- a/webAO/client.ts +++ b/webAO/client.ts @@ -2762,6 +2762,9 @@ export function resizeChatbox() { const gameHeight = document.getElementById("client_background").offsetHeight; chatContainerBox.style.fontSize = `${(gameHeight * 0.0521).toFixed(1)}px`; + + const trackstatus = (document.getElementById("client_trackstatustext")); + trackstatus.width = (trackstatus.offsetWidth-1)+"px"; } window.resizeChatbox = resizeChatbox; diff --git a/webAO/styles/chatbox/chatdr2.css b/webAO/styles/chatbox/chatdr2.css index 481cd3d..fdfc426 100644 --- a/webAO/styles/chatbox/chatdr2.css +++ b/webAO/styles/chatbox/chatdr2.css @@ -102,7 +102,7 @@ #client_trackstatus { display: block; position: absolute; - width: 35%; + width: 30%; height: 35%; top: 0; left: 0; @@ -113,8 +113,11 @@ #client_trackstatustext { position: absolute; - top: 4%; - left: 4%; + top: 6%; + left: 25%; + width: 50%; color: #f84f00; font-family: monospace; + font-size: 1.2em; + white-space: nowrap; } \ No newline at end of file -- cgit