Mercurial Hosting > chat
changeset 68:329c3f70fd78
UI
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 06 Mar 2025 19:43:18 -0700 |
parents | e4e331539146 |
children | e229f4aacde0 |
files | src/chat.css src/get_chat.js.luan src/images/menu.svg |
diffstat | 3 files changed, 20 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/chat.css Thu Mar 06 12:13:31 2025 -0700 +++ b/src/chat.css Thu Mar 06 19:43:18 2025 -0700 @@ -89,6 +89,9 @@ span[pulldown] { position: relative; +} + +div[who] span[pulldown] { width: 16px; display: inline-block; vertical-align: middle; @@ -96,7 +99,6 @@ span[pulldown] > div { display: none; - top: 0; right: 100%; z-index: 2; position: absolute; @@ -107,11 +109,18 @@ padding: 5px 0; } +div[who] span[pulldown] > div { + top: 0; +} + +div[top] span[pulldown] > div { + right: 0; +} + span[pulldown] > div > span { white-space: nowrap; display: block; padding: 3px 16px; - xcolor: #333333; cursor: pointer; } @@ -171,10 +180,6 @@ display: none; } -a[people] { - color: black; -} - div[people] { margin-bottom: 40px; }
--- a/src/get_chat.js.luan Thu Mar 06 12:13:31 2025 -0700 +++ b/src/get_chat.js.luan Thu Mar 06 19:43:18 2025 -0700 @@ -32,14 +32,20 @@ <span><% local user_id = chat.other_user_id(user.id) local other_user = get_user_by_id(user_id) or error(user_id) - %><a people href="javascript:openPeople()"><%= other_user.name_html() %></a><span online="<%= other_user.id %>"></span><% + %><%= other_user.name_html() %><span online="<%= other_user.id %>"></span><% local voice_url = other_user.voice_url if voice_url ~= nil then %> <a href="<%=voice_url%>" title="Call" target="voice"><img phone src="/images/call.svg"></a><% end %></span> </h3> - <button onclick='deleteChat()'>Delete</button> + <span pulldown> + <img onclick="clickMenu(this)" src="/images/menu.svg"> + <div> + <span onclick="openPeople()">People in Chat</span> + <span onclick="deleteChat()">Delete Chat</span> + </div> + </span> </div> <div main> <%
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/images/menu.svg Thu Mar 06 19:43:18 2025 -0700 @@ -0,0 +1,1 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#5f6368"><path d="M120-240v-80h720v80H120Zm0-200v-80h720v80H120Zm0-200v-80h720v80H120Z"/></svg> \ No newline at end of file