mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-06 03:34:57 +08:00
Improve branch selection menu (#882)
This commit is contained in:
parent
7ae46eaa4e
commit
6e570ed05b
1 changed files with 4 additions and 2 deletions
|
@ -43,11 +43,13 @@ defmodule LivebookWeb.SessionLive.SectionComponent do
|
|||
<span class="font-medium"><%= parent.name %></span>
|
||||
</button>
|
||||
<% else %>
|
||||
<button class="menu-item text-gray-500"
|
||||
<button class="menu-item text-gray-500 bg-gray-50"
|
||||
phx-click="set_section_parent"
|
||||
phx-value-section_id={@section_view.id}
|
||||
phx-value-parent_id={parent.id}>
|
||||
<.remix_icon icon="arrow-right-s-line" />
|
||||
<%= if @section_view.parent && @section_view.parent.id do %>
|
||||
<.remix_icon icon="arrow-right-s-line" class="invisible" />
|
||||
<% end %>
|
||||
<span class="font-medium"><%= parent.name %></span>
|
||||
</button>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Reference in a new issue