Skip to content

Commit

Permalink
Merge pull request #301 from awcodes/fix/weird-bubble-menu-display
Browse files Browse the repository at this point in the history
Fix: bubble menu showing when not in profile for link
  • Loading branch information
awcodes authored Jan 4, 2024
2 parents f67a12b + 4884da1 commit 88db473
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions resources/views/components/menus/link-bubble-menu.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
'tools' => [],
])

@if (in_array('link', $tools))
<div x-ref="linkBubbleMenu" class="flex gap-1 items-center" x-cloak>
<span x-text="editor().getAttributes('link').href" class="max-w-xs truncate overflow-hidden whitespace-nowrap"></span>
<x-filament-tiptap-editor::tools.link :state-path="$statePath" icon="edit" :active="false" label="{{ __('filament-tiptap-editor::editor.link.edit') }}"/>
<x-filament-tiptap-editor::tools.remove-link />
</div>
@endif


4 changes: 2 additions & 2 deletions resources/views/components/menus/table-bubble-menu.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
'tools' => [],
])

@if (in_array('table', $tools))
<div x-ref="tableBubbleMenu" class="flex gap-1 items-center" x-cloak>
<x-filament-tiptap-editor::button
action="editor().chain().focus().addColumnBefore().run()"
Expand Down Expand Up @@ -58,5 +59,4 @@
label="{{ __('filament-tiptap-editor::editor.table.delete_table') }}"
/>
</div>


@endif

0 comments on commit 88db473

Please sign in to comment.