From 4af515b20d518031dd6b2af5a8a4e959fd726684 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 7 Jun 2024 17:07:10 +0200 Subject: [PATCH] [IMP] runbot_merge: stagings button wrapping Because one of the previous commits adds the duration of the staging to the staging dropdown toggles, it's now much longer, and by default the text does not wrap so it looks like shit and goes completely out the column "CSS is awesome" style. Update the style of the dropdown toggles specifically to allow text wrapping. Also align them left instead of centering, because the text makes a centered layout super ugly. --- runbot_merge/static/scss/runbot_merge.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/runbot_merge/static/scss/runbot_merge.scss b/runbot_merge/static/scss/runbot_merge.scss index e5a18687..92d807a4 100644 --- a/runbot_merge/static/scss/runbot_merge.scss +++ b/runbot_merge/static/scss/runbot_merge.scss @@ -82,6 +82,11 @@ $mergebot-colors: ("success": #dff0d8, "danger": #f2dede, "warning": #fcf8e3, "i .batch a:not(:last-of-type) a:after { content: ","; } + + button.dropdown-toggle { + text-align: left; + white-space: wrap; + } } .pr-listing > * { display: inline-block; } .pr-awaiting { opacity: 0.8; }