fix: remove duplicate action bar from page_editor (double header)
FlowDeck CI / test (push) Failing after 4s
FlowDeck CI / docker (push) Has been skipped

The unified _header.html already renders the topbar with breadcrumb. The
page_editor had a second 'page-topbar' div in the content area with the
same buttons (Share, Copy link, Favorite, More). Removed the duplicate
actions from the header, keeping them only in the content area where
they are in the correct Alpine scope (editorState()).

This fixes:
- Double header visual duplication
- Share/Copy/Favorite/More buttons now work (in editorState scope)
This commit is contained in:
2026-07-16 12:41:25 -04:00
parent d4fb095baf
commit b5dd37a652
+1 -2
View File
@@ -2,11 +2,10 @@
page_title %}{{ page.title }}{% endblock %} {% block topbar %}
{% set page_icon = "📄" %}
{% set page_title = page.title %}
{% set right_actions = '<span class="topbar-edited">Edited just now</span><button class="topbar-btn share-btn" @click="shareOpen = !shareOpen">🔒 Share ▾</button><button class="topbar-btn" @click="copyPageLink" title="Copy link">🔗</button><button class="topbar-btn star-btn" @click="toggleFavorite">⭐</button><button class="topbar-btn" @click="moreOpen = !moreOpen" style="position:relative">⋯<div class="dropdown-panel" :class="{ visible: moreOpen }" @click.outside="moreOpen=false" style="top:100%;right:0;left:auto;min-width:200px"><div class="dropdown-option" @click="moreOpen=false">📋 Duplicate</div><div class="dropdown-option" @click="moreOpen=false">🗑 Move to Trash</div><div class="dropdown-option" @click="moreOpen=false">🔗 Copy link</div><div class="dropdown-option" @click="moreOpen=false">📤 Export</div></div></button>' %}
{% include '_header.html' %}
{% endblock %} {% block content %}
<div class="page-editor-wrapper" x-data="editorState()">
<!-- ═══════════ Top Action Bar ═══════════ -->
<!-- ═══════════ Action Bar (Share, Copy, Favorite, More) ═══════════ -->
<div class="page-topbar">
<div class="page-topbar-right" style="position: relative">
<span class="topbar-edited">Edited just now</span>