Multiroom support

This commit is contained in:
2025-03-14 08:44:06 +11:00
parent e463d3dd2b
commit eea257d617
6 changed files with 914 additions and 226 deletions

View File

@@ -127,7 +127,7 @@ body {
overflow-y: auto;
border: 0px;
padding: 20px;
margin: 10px 0; /* Remove horizontal margin */
margin: 10px 0;
flex-grow: 1;
width: 100%;
box-sizing: border-box;
@@ -155,7 +155,6 @@ body {
box-sizing: border-box;
}
/* Update input styles */
input {
color: white;
background: rgba(0, 0, 0, 0.5);
@@ -350,3 +349,71 @@ input {
margin: 10px;
}
.room-list {
width: 200px;
background: rgba(0, 0, 0, 0.5);
border-radius: 10px;
margin-right: 10px;
padding: 10px;
height: 100%;
overflow-y: auto;
}
.room-header {
font-weight: bold;
text-align: center;
padding: 5px;
margin-bottom: 10px;
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.room-item {
padding: 10px;
margin: 5px 0;
border-radius: 5px;
cursor: pointer;
transition: background 0.2s;
}
.room-item:hover {
background: rgba(255, 255, 255, 0.1);
}
.room-item.active {
background: rgba(104, 79, 255, 0.3);
font-weight: bold;
}
.create-room-button {
width: 100%;
padding: 8px;
margin-top: 10px;
background: rgba(73, 255, 145, 0.3);
border: none;
border-radius: 5px;
color: white;
cursor: pointer;
transition: background 0.2s;
}
.create-room-button:hover {
background: rgba(73, 255, 145, 0.5);
}
.room-title {
font-weight: bold;
font-size: 16px;
margin-bottom: 5px;
padding: 5px 10px;
background: rgba(0, 0, 0, 0.3);
border-radius: 5px;
}
.message.system-message {
color: rgba(73, 255, 145, 0.8);
font-style: italic;
}
.message.history-message {
color: rgba(255, 255, 255, 0.7);
}