Skip to content

Commit

Permalink
Bubble: ensure reactions come on the new line
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Jun 29, 2024
1 parent 6aff2fb commit 1fd036d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions themes/chatview/psi/bubble/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@
if (reactions) {
reactions.innerHTML = "";
} else {
lineBreak = document.createElement("hr");
lineBreak.classList.add("flex-breaker");
msg.appendChild(lineBreak);
reactions = document.createElement("reactions");
reactions.className = "reactions";
msg.appendChild(reactions);
Expand Down Expand Up @@ -359,6 +362,12 @@
word-break: break-word;
}

hr.flex-breaker {
width: 100%;
margin: 0;
border: 0;
}

.reactions:not(:empty) {
flex-basis: calc(100% - 4rem);
}
Expand Down

0 comments on commit 1fd036d

Please sign in to comment.