mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 17:25:32 +00:00
BIGFIX: scrolling on fp, loading times
This commit is contained in:
@@ -242,8 +242,6 @@ class FilterList extends HTMLElement {
|
||||
this._items = data;
|
||||
this.render();
|
||||
}
|
||||
if (!htmx) return;
|
||||
htmx.process(this);
|
||||
}
|
||||
|
||||
get items() {
|
||||
@@ -451,6 +449,8 @@ class FilterList extends HTMLElement {
|
||||
${this.List()}
|
||||
</div>
|
||||
`;
|
||||
if (!htmx) return;
|
||||
htmx.process(this);
|
||||
}
|
||||
|
||||
ActiveDot(item) {
|
||||
@@ -506,6 +506,9 @@ class FilterList extends HTMLElement {
|
||||
<a
|
||||
href="${this.getURL(item)}"
|
||||
hx-indicator="body"
|
||||
hx-swap="outerHTML show:none"
|
||||
hx-select="main"
|
||||
hx-target="main"
|
||||
class="${FILTER_LIST_ITEM} block px-2.5 py-0.5 hover:bg-slate-200 no-underline ${
|
||||
index % 2 === 0 ? "bg-stone-100" : "bg-stone-50"
|
||||
}"
|
||||
|
||||
Reference in New Issue
Block a user