Reduced vertical spacing in announcements

This commit is contained in:
Christian 'ketura' McCarty
2024-12-07 11:30:26 -06:00
parent 9c5499481a
commit 8da11ca7f0
2 changed files with 10 additions and 1 deletions

View File

@@ -35,8 +35,11 @@ function announcementDeliveryService(comm, json) {
height:$(window).height() * 0.9,
closeText: ''
});
var content = json.content;
content = content.replaceAll("<br/>", "");
$("#announcement-dialog").html(json.content);
$("#announcement-dialog").html(content);
announcementDialog.dialog("open");
//Otherwise any links cause it to scroll to the link
$("#announcement-dialog").scrollTop("0");