From af016f42392428442395bc380d9b2802b254c0ca Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 29 Nov 2022 10:02:18 +0100 Subject: [PATCH] [FIX] runbot_merge: frontend templates & styles for 15.0 15.0 (or 14.0) dropped some of the BS3 (?) compatibility stuff, which the mergebot was (apparently) relying on. This lead to a visual degradation as well as the frontend dropdown looking absolutely awful. Fix that, on both style and templates. 15.0 (or 14.0) also dropped the bespoke responsive utility classes, switch to bootstrap's. --- runbot_merge/static/scss/runbot_merge.scss | 9 +++++++- runbot_merge/views/templates.xml | 26 +++++++++++++--------- 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/runbot_merge/static/scss/runbot_merge.scss b/runbot_merge/static/scss/runbot_merge.scss index c00bf61f..11ed66f4 100644 --- a/runbot_merge/static/scss/runbot_merge.scss +++ b/runbot_merge/static/scss/runbot_merge.scss @@ -1,7 +1,12 @@ // FIX: bs4 shit-heap colors and styles -body { +html { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #666666; + font-size: 14px; +} +body { + color: inherit; + font-family: inherit; } h1, h2, h3, h4, h5, h6{ color: inherit; @@ -36,6 +41,8 @@ h5 { font-size: 1em; } .list-inline > li { padding: 0 5px; margin-right: 0; + // TODO: find better way to do this + display: inline-block; } // mergebot layouting diff --git a/runbot_merge/views/templates.xml b/runbot_merge/views/templates.xml index 0f3f662f..5eeaa497 100644 --- a/runbot_merge/views/templates.xml +++ b/runbot_merge/views/templates.xml @@ -13,6 +13,7 @@ @@ -29,8 +30,10 @@ @@ -164,8 +167,8 @@ bg-gray-lighter - hidden-xs - visible-lg-block + d-none d-md-block + d-none d-lg-block fast forward failed () @@ -254,11 +257,12 @@