From 18c3e6660fd97da30cec84abfd9e8bf5ac48ce2d Mon Sep 17 00:00:00 2001 From: Charlie Powell <31997505+cp2004@users.noreply.github.com> Date: Tue, 17 Aug 2021 15:32:39 +0100 Subject: [PATCH] :bug: Remove CSS `width: auto` on announcements dialog, breaks things This makes the width of the modal really narrow when it is first opened & on certain screen sizes, removing this line appears to fix the issues. Closes #4216 --- src/octoprint/plugins/announcements/static/js/announcements.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/octoprint/plugins/announcements/static/js/announcements.js b/src/octoprint/plugins/announcements/static/js/announcements.js index 75720f39a..dccf4e953 100644 --- a/src/octoprint/plugins/announcements/static/js/announcements.js +++ b/src/octoprint/plugins/announcements/static/js/announcements.js @@ -209,7 +209,6 @@ $(function () { } }) .css({ - "width": "auto", "margin-left": function () { return -($(this).width() / 2); }