From 450965698f3c9724999c38ce2aea062ce6b8d553 Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Wed, 7 Mar 2018 10:55:13 +0100 Subject: [PATCH] Grow/shrink buttons depending on number of buttons visible --- app/assets/stylesheets/editor.css.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/editor.css.scss b/app/assets/stylesheets/editor.css.scss index 755e3409..a38157b4 100644 --- a/app/assets/stylesheets/editor.css.scss +++ b/app/assets/stylesheets/editor.css.scss @@ -42,13 +42,14 @@ button i.fa-spin { background-color: #008CBA; margin-top: 0; width: 100%; + display: flex; button { font-size: 80%; } button, .btn-group { - width: 33.33333%; + flex-grow: 1; } .btn-group { @@ -191,4 +192,4 @@ button i.fa-spin { .enforce-bottom-margin { margin-bottom: 5px !important; -} \ No newline at end of file +}