Merge branch 'main' into stalled-cards

* main:
  The joke is better if 11 is last 🤘🏻
  Filter here, too
  Keep up with filtering controller changes
  dep: update rack to 3.1.16
  Try minus
  Adjust icon and card header for events
  Fix that flash notices invisibly overlapped navbar
  Use card header in events
  Cap height and scroll list
  Fix that flash notices invisibly overlapped navbar
  Use card header in events
  Fix: update option when changing index
  Cap height and scroll list
This commit is contained in:
Jason Zimdars
2025-06-05 14:41:07 -05:00
12 changed files with 72 additions and 51 deletions
@@ -18,6 +18,7 @@ export default class extends Controller {
set #index(index) {
this.fieldTarget.style.setProperty("--knob-index", `${index}`);
this.sliderTarget.value = index
this.#optionForIndex(index).checked = true
}
get #selectedOption() {
@@ -26,10 +27,6 @@ export default class extends Controller {
})
}
set #value(index) {
this.#optionForIndex(index).checked = true
}
#optionForIndex(index) {
return this.optionTargets.find(option => {
return option.dataset.index === index;