Skip to content

Commit 353112b

Browse files
koray-erenJeff
authored andcommitted
basic styling around messages
1 parent 29ef5f4 commit 353112b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

sogs/static/view_room.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const setup = async () => {
5454

5555
const plain = Message.decode(data).dataMessage;
5656
e.appendChild(document.createTextNode(plain.profile.displayName +": "+plain.body));
57+
e.classList.add('bg-gray-300','dark:bg-lightGray', 'w-fit', 'rounded-full', 'px-3', 'my-2')
5758
elem.appendChild(e);
5859

5960
}

sogs/templates/view_room.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<img class="aspect-square max-w-full max-h-40" src="invite.png" />
1515
</div>
1616
</div>
17+
1718
{% if show_recent %}
1819
<ul id="messages" class="">
1920
<li>loading...</li>

0 commit comments

Comments
 (0)