{% macro dropdown_end() %} {% endmacro %} {# Page Actions Dropdown - Split button with Edit action and dropdown for more options Usage: {{ page_actions_dropdown(edit_href="/edit/page") }} {{ page_action_item(text="Copy page", description="Copy page as Markdown for LLMs", icon="clipboard", click="copyMarkdown()") }} {{ dropdown_end() }} #} {% macro page_actions_dropdown(edit_href="", edit_text="Edit", show_edit=True, edit_external=False) %} {#- Split button: two frappe-ui gray-outline Buttons (size md) sharing one border box, so the pair matches Button's h-8 / rounded-4 / colour recipe while still reading as a single control. -#} {% set split_segment = "inline-flex items-center justify-center gap-2 shrink-0 h-8 text-base-medium text-[var(--ink-gray-8)] bg-[var(--surface-base)] active:bg-[var(--surface-gray-4)] transition-colors" %}