From 0a4ee869767395839957668216311fbac32c6225 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Tue, 31 Mar 2026 18:44:09 -0700 Subject: [PATCH] fix(rpubs): move format selector from toolbar to write step bottom bar Remove "Digest" format dropdown from the editor toolbar header. Move format selector into the write step bottom bar as a clickable badge with dropdown. Fix CSS bug where dropdown panels with display:flex overrode the HTML hidden attribute, causing a visible rectangle artifact. Co-Authored-By: Claude Opus 4.6 --- modules/rpubs/components/folk-pubs-editor.ts | 52 ++++++++++++-------- 1 file changed, 31 insertions(+), 21 deletions(-) diff --git a/modules/rpubs/components/folk-pubs-editor.ts b/modules/rpubs/components/folk-pubs-editor.ts index 9199382..5bd6c25 100644 --- a/modules/rpubs/components/folk-pubs-editor.ts +++ b/modules/rpubs/components/folk-pubs-editor.ts @@ -411,9 +411,6 @@ export class FolkPubsEditor extends HTMLElement { private render() { if (!this.shadowRoot) return; - const currentFormat = this._formats.find(f => f.id === this._selectedFormat); - const formatLabel = currentFormat ? currentFormat.name : this._selectedFormat; - this.shadowRoot.innerHTML = ` ${this.getStyles()}
@@ -424,22 +421,6 @@ export class FolkPubsEditor extends HTMLElement {
- -
- - -
- ${this._runtime ? `
@@ -518,7 +499,20 @@ export class FolkPubsEditor extends HTMLElement {
- ${this.escapeHtml(this._formats.find(f => f.id === this._selectedFormat)?.name || this._selectedFormat)} +
+ + +
${this._error ? `
${this.escapeHtml(this._error)}
` : ''}