A platform for community discussion. Free, open, simple.
UX: improve alignment and wrapping of bulk select (#38701)
Kriscc84ba9a0c5b
diff --git a/app/assets/stylesheets/common/base/_topic-list.scss b/app/assets/stylesheets/common/base/_topic-list.scssindex cbac395345b..06afd2856b2 100644--- a/app/assets/stylesheets/common/base/_topic-list.scss+++ b/app/assets/stylesheets/common/base/_topic-list.scss@@ -135,6 +135,10 @@}.bulk-select-topics-dropdown {+ display: flex;+ align-items: center;+ gap: var(--space-1) var(--space-2);+.select-kit.single-select.dropdown-select-box .select-kit-row {.texts .name {font-weight: normal;@@ -149,6 +153,11 @@}}+.bulk-select-topics-actions {+ display: flex;+ gap: var(--space-2);+}+.topic-list {width: 100%;border-collapse: collapse;@@ -524,6 +533,7 @@.topic-list-data.bulk-select {padding: 0;width: 30px;+ text-align: center;label {margin: 0;@@ -652,11 +662,10 @@.bulk-select-topics {display: inline-flex;+ flex-wrap: wrap;+ gap: var(--space-2);+ align-items: end;margin-left: -5px;-- .btn {- margin-right: var(--space-2);- }}}diff --git a/frontend/discourse/app/components/topic-list/header/sortable-column.gjs b/frontend/discourse/app/components/topic-list/header/sortable-column.gjsindex 4aa95aeb07b..6942349bcae 100644--- a/frontend/discourse/app/components/topic-list/header/sortable-column.gjs+++ b/frontend/discourse/app/components/topic-list/header/sortable-column.gjs@@ -95,21 +95,22 @@ export default class SortableColumn extends Component {{{#if @bulkSelectEnabled}}<span class="bulk-select-topics">+ <div class="bulk-select-topics-actions">+ <button+ {{on "click" this.bulkSelectAll}}+ class="btn btn-default bulk-select-all"+ >{{i18n "topics.bulk.select_all"}}</button>+ <button+ {{on "click" this.bulkClearAll}}+ class="btn btn-default bulk-clear-all"+ >{{i18n "topics.bulk.clear_all"}}</button>+ </div>{{#if @canDoBulkActions}}<TopicBulkSelectDropdown@bulkSelectHelper={{@bulkSelectHelper}}@afterBulkActionComplete={{this.afterBulkActionComplete}}/>{{/if}}-- <button- {{on "click" this.bulkSelectAll}}- class="btn btn-default bulk-select-all"- >{{i18n "topics.bulk.select_all"}}</button>- <button- {{on "click" this.bulkClearAll}}- class="btn btn-default bulk-clear-all"- >{{i18n "topics.bulk.clear_all"}}</button></span>{{/if}}{{/if}}