Skip to content

Commit

Permalink
fix: interact message style
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinrea committed Aug 13, 2024
1 parent c7374c4 commit 887122a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main-window/danmu-entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ function doCreateInteractEntry(msg: InteractMessage) {
const danmuSender = document.createElement('span')
danmuSender.className = 'sender'
danmuSender.innerText = msg.sender.uname
danmuSender.style.color = 'var(--font-color)'
danmuEntry.appendChild(danmuSender)
// Content
const danmuContent = document.createElement('span')
Expand Down
8 changes: 8 additions & 0 deletions src/main-window/main-window.css
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,14 @@ button:hover {
display: var(--interact-display);
}

.interact .sender {
color: var(--uname-color)!important;
}

.interact .content {
color: var(--uname-color)!important;
}

.danmu {
position: relative;
padding-top: 10px;
Expand Down

0 comments on commit 887122a

Please sign in to comment.