1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-23 07:09:39 +02:00

fix bulk action bar positioning (#1370)

* fix bulk action bar positioning

* remove extra space
This commit is contained in:
Guillem Arias Fauste 2024-10-28 13:02:49 +01:00 committed by GitHub
parent 277fb3dc39
commit 3cd364af09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -126,7 +126,7 @@ export default class extends Controller {
_updateSelectionBar() { _updateSelectionBar() {
const count = this.selectedIdsValue.length; const count = this.selectedIdsValue.length;
this.selectionBarTextTarget.innerText = `${count} ${this._pluralizedResourceName()} selected`; this.selectionBarTextTarget.innerText = `${count} ${this._pluralizedResourceName()} selected`;
this.selectionBarTarget.hidden = count === 0; this.selectionBarTarget.classList.toggle("hidden", count === 0);
this.selectionBarTarget.querySelector("input[type='checkbox']").checked = this.selectionBarTarget.querySelector("input[type='checkbox']").checked =
count > 0; count > 0;
} }

View file

@ -10,7 +10,7 @@
<%= render "transactions/searches/search" %> <%= render "transactions/searches/search" %>
<% if @transaction_entries.present? %> <% if @transaction_entries.present? %>
<div hidden id="entry-selection-bar" data-bulk-select-target="selectionBar"> <div id="entry-selection-bar" data-bulk-select-target="selectionBar" class="flex justify-center hidden">
<%= render "account/transactions/selection_bar" %> <%= render "account/transactions/selection_bar" %>
</div> </div>
<div class="grow overflow-y-auto"> <div class="grow overflow-y-auto">