From 7683b4bbfaa771b3ded734eb58045e9c9ce2b527 Mon Sep 17 00:00:00 2001 From: Kris Date: Tue, 24 Jan 2023 09:47:35 -0500 Subject: [PATCH] UX: improve bulk button layout and alignment (#19966) --- app/assets/stylesheets/common/base/modal.scss | 37 ++++++------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/app/assets/stylesheets/common/base/modal.scss b/app/assets/stylesheets/common/base/modal.scss index c5249f07bc4..be7821e32ca 100644 --- a/app/assets/stylesheets/common/base/modal.scss +++ b/app/assets/stylesheets/common/base/modal.scss @@ -636,36 +636,21 @@ } .topic-bulk-actions-modal { + .modal-inner-container { + min-width: 0; + width: 100%; + } p { margin-top: 0; } - &.full .modal-body { - height: 400px; - max-height: 400px; - } - .bulk-buttons { - display: flex; - flex-wrap: wrap; - margin-right: -1%; - - .btn { - flex: 1 0 30%; - margin-bottom: 1em; - margin-right: 1%; - white-space: nowrap; - overflow: hidden; - max-width: 33%; - - @media screen and (max-width: 767px) { - flex: 1 0 48%; - max-width: 48%; - } - - @include breakpoint(mobile-extra-large) { - flex: 1 1 auto; - min-width: 49%; - } + display: grid; + grid-template-columns: repeat(auto-fit, minmax(12em, 1fr)); + gap: 0.5em; + max-width: 100%; + min-width: 0; + .d-button-label { + @include ellipsis; } } }