feat(chat): initial implementation for edit live view

This commit is contained in:
2024-10-16 01:04:23 +00:00
parent 32350431f8
commit a0d23e5672
4 changed files with 63 additions and 1 deletions

View File

@@ -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>