From 605b4eff2a5f76866ebb340594f6c84f3b75c7fc Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 5 Aug 2020 12:19:30 -0500 Subject: [PATCH] posts: adjust tag edit dialog width. 60% of window width was too large for widescreen monitors. --- app/javascript/src/javascripts/posts.js.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/src/javascripts/posts.js.erb b/app/javascript/src/javascripts/posts.js.erb index c85b9c6dc..1985cc02d 100644 --- a/app/javascript/src/javascripts/posts.js.erb +++ b/app/javascript/src/javascripts/posts.js.erb @@ -14,6 +14,7 @@ Post.SWIPE_VELOCITY = 0.6; Post.MAX_RECOMMENDATIONS = 45; // 3 rows of 9 posts at 1920x1080. Post.LOW_TAG_COUNT = 10; Post.HIGH_TAG_COUNT = 20; +Post.EDIT_DIALOG_WIDTH = 720; Post.initialize_all = function() { @@ -110,7 +111,7 @@ Post.open_edit_dialog = function() { $("#form").appendTo(dialog); dialog.dialog({ title: "Edit tags", - width: $(window).width() * 0.6, + width: Post.EDIT_DIALOG_WIDTH, position: { my: "right", at: "right-20",