feat(chat): initial implementation for edit live view
This commit is contained in:
@@ -26,7 +26,15 @@ defmodule SlaxWeb.ChatRoomLive do
|
||||
<div class="flex flex-col flex-grow shadow-lg">
|
||||
<div class="flex justify-between items-center flex-shrink-0 h-16 bg-white border-b border-slate-300 px-4">
|
||||
<div class="flex flex-col gap-1.5">
|
||||
<h1 class="text-sm font-bold leading-none">#<%= @room.name %></h1>
|
||||
<h1 class="text-sm font-bold leading-none">
|
||||
#<%= @room.name %>
|
||||
<.link
|
||||
class="font-normal text-xs text-blue-600 hover:text-blue-700"
|
||||
navigate={~p"/rooms/#{@room}/edit"}
|
||||
>
|
||||
Edit
|
||||
</.link>
|
||||
</h1>
|
||||
<div class="text-xs leading-none h-3.5" phx-click="toggle-topic">
|
||||
<%= if @hide_topic? do %>
|
||||
<span class="text-slate-600">[Topic hidden]</span>
|
||||
|
Reference in New Issue
Block a user