Skip to content

Commit

Permalink
Merge pull request #108 from karwosts/filter-date-range
Browse files Browse the repository at this point in the history
Fix overflow
  • Loading branch information
isabellaalstrom authored Apr 20, 2023
2 parents c13b8af + 77fc90e commit e78dbbf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions grocy-chores-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class GrocyChoresCard extends LitElement {

_renderOverflow() {
return html`
<div class="name more-items-title show-class">
<div class="name more-items-title overflow-toggle show-class">
<div>
<ha-button class="expand-button show-more-button"
@click=${() => this._toggleOverflow(this.renderRoot)}>
Expand All @@ -182,11 +182,11 @@ class GrocyChoresCard extends LitElement {
</div>
</div>
<div class="card-content card-overflow-content hidden-class">
<div class="card-content card-overflow-content overflow-toggle hidden-class">
${this._renderItems(this.overflow)}
</div>
<div class="name more-items-title hidden-class">
<div class="name more-items-title overflow-toggle hidden-class">
<div>
<ha-button class="expand-button show-more-button"
@click=${() => this._toggleOverflow(this.renderRoot)}>
Expand Down Expand Up @@ -645,8 +645,8 @@ class GrocyChoresCard extends LitElement {

_toggleOverflow(documentFragment) {
let element;
const elementsHidden = documentFragment.querySelectorAll('.hidden-class');
const elementsShown = documentFragment.querySelectorAll('.show-class');
const elementsHidden = documentFragment.querySelectorAll('.hidden-class.overflow-toggle');
const elementsShown = documentFragment.querySelectorAll('.show-class.overflow-toggle');

for (element in elementsHidden) {
if (elementsHidden.hasOwnProperty(element)) {
Expand Down

0 comments on commit e78dbbf

Please sign in to comment.