+Create new beitrag

This commit is contained in:
Simon Martens
2026-01-21 22:28:02 +01:00
parent df555d5c0b
commit e2b9fca6d9
9 changed files with 185 additions and 103 deletions

View File

@@ -134,6 +134,10 @@
@apply w-full inline-flex justify-center py-2 px-4 border border-transparent rounded-md text-sm font-medium text-gray-800 bg-stone-200 hover:bg-stone-300 cursor-pointer focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500 no-underline;
}
.content-action-button {
@apply inline-flex items-center justify-center gap-2 rounded-xs border border-slate-300 bg-white px-3 py-1.5 text-sm font-medium text-gray-800 shadow-sm transition-all duration-75 hover:bg-stone-50 focus:outline-none focus:ring-2 focus:ring-slate-400/30;
}
.dbform div-menu {
@apply relative inline-block;
}

View File

@@ -102,6 +102,14 @@ export class ToolTip extends HTMLElement {
this.addEventListener("mouseenter", () => this._showTooltip());
this.addEventListener("mouseleave", () => this._hideTooltip());
this.addEventListener("pointerdown", () => this._forceHide());
this.addEventListener("mousedown", () => this._forceHide());
this.addEventListener("click", () => this._forceHide());
this.addEventListener("keydown", (event) => {
if (event.key === "Enter" || event.key === " ") {
this._forceHide();
}
});
if (this._dataTipElem) {
this._observer = new MutationObserver(() => {