changeset 48:7628fd0e3560

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 28 Feb 2025 19:59:27 -0700
parents 8c6a2f602dbd
children 080eb027d93d
files src/chat.css src/chat.js src/index.html.luan
diffstat 3 files changed, 10 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/chat.css	Fri Feb 28 19:47:13 2025 -0700
+++ b/src/chat.css	Fri Feb 28 19:59:27 2025 -0700
@@ -6,8 +6,9 @@
 	right: 0;
 }
 
-div[content] {
-	margin-bottom: 0;
+div[chat_content] {
+	margin-left: 3%;
+	margin-right: 3%;
 	display: flex;
 	height: calc(100% - 32px);
 }
@@ -144,7 +145,7 @@
 
 
 @media (min-width: 700px) {
-	div[content] {
+	div[chat_content] {
 		margin-left: calc(3% - 8px);
 		margin-right: 0;
 	}
@@ -166,8 +167,8 @@
 }
 
 @media (max-width: 699px) {
-	div[content][show="chats"] div[posts],
-	div[content][show="posts"] div[chats] {
+	div[chat_content][show="chats"] div[posts],
+	div[chat_content][show="posts"] div[chats] {
 		display: none;
 	}
 
@@ -175,7 +176,7 @@
 		width: 100%;
 	}
 
-	div[content][show="posts"] {
+	div[chat_content][show="posts"] {
 		margin-right: 0;
 	}
 
--- a/src/chat.js	Fri Feb 28 19:47:13 2025 -0700
+++ b/src/chat.js	Fri Feb 28 19:59:27 2025 -0700
@@ -17,7 +17,7 @@
 }
 
 function selectChat(div,email) {
-	document.querySelector('div[content]').setAttribute('show','posts');
+	document.querySelector('div[chat_content]').setAttribute('show','posts');
 	let chatId = div.getAttribute('chat');
 	if( chatId === currentChatId )
 		return;
@@ -34,7 +34,7 @@
 }
 
 function back() {
-	document.querySelector('div[content]').setAttribute('show','chats');
+	document.querySelector('div[chat_content]').setAttribute('show','chats');
 }
 
 function gotChat(html) {
--- a/src/index.html.luan	Fri Feb 28 19:47:13 2025 -0700
+++ b/src/index.html.luan	Fri Feb 28 19:59:27 2025 -0700
@@ -102,7 +102,7 @@
 	</head>
 	<body>
 <%		header() %>
-		<div content show="chats">
+		<div chat_content show="chats">
 			<div chats>
 <%				chats_html() %>
 			</div>