Fix: edit comment button disappears when morphing the page

This also replaces the ad-hoc stimulus controller with the pure-css based
solution we recently added.

https://app.fizzy.do/5986089/cards/3243
This commit is contained in:
Jorge Manrubia
2025-12-02 07:06:50 +01:00
parent ed6b0da48a
commit 11249949eb
4 changed files with 3 additions and 23 deletions
@@ -1,12 +0,0 @@
import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static targets = [ "creation" ]
static classes = [ "mine" ]
creationTargetConnected(element) {
if (element.dataset.creatorId == Current.user.id) {
element.classList.add(this.mineClass)
}
}
}