added queue system on rooms
This commit is contained in:
@@ -637,29 +637,27 @@ input[type=number]::-webkit-outer-spin-button {
|
||||
margin: 0;
|
||||
}
|
||||
input[type=number] {
|
||||
-moz-appearance: textfield; /* Firefox */
|
||||
-moz-appearance: textfield;
|
||||
}
|
||||
|
||||
/* Enhanced Episode Control Container */
|
||||
.ep-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background: rgba(0, 0, 0, 0.4); /* Darker background for visibility */
|
||||
border: 1px solid rgba(255, 255, 255, 0.2); /* brighter border */
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 12px;
|
||||
padding: 4px;
|
||||
width: 100%;
|
||||
height: 48px; /* Fixed height */
|
||||
height: 48px;
|
||||
margin-top: 8px;
|
||||
box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
/* Button Styling */
|
||||
.ep-btn {
|
||||
width: 40px; /* Fixed width */
|
||||
height: 38px; /* Fixed height */
|
||||
flex-shrink: 0; /* Prevent shrinking */
|
||||
width: 40px;
|
||||
height: 38px;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -682,10 +680,9 @@ input[type=number] {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
/* Input Styling */
|
||||
.ep-input {
|
||||
flex: 1;
|
||||
min-width: 0; /* Allows flex item to shrink below content size */
|
||||
min-width: 0;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: white;
|
||||
@@ -693,7 +690,7 @@ input[type=number] {
|
||||
font-size: 1.2rem;
|
||||
font-weight: 800;
|
||||
outline: none;
|
||||
font-family: monospace; /* Better number alignment */
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
.ep-input:focus {
|
||||
@@ -977,4 +974,183 @@ input[type=number] {
|
||||
transform: translate(-50%, -50%) scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-tabs {
|
||||
display: flex;
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
background: rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
.tab-btn {
|
||||
flex: 1;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--text-muted);
|
||||
padding: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
border-bottom: 2px solid transparent;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.tab-btn:hover { color: white; background: rgba(255,255,255,0.05); }
|
||||
.tab-btn.active { color: white; border-bottom-color: var(--brand-color); background: rgba(255,255,255,0.02); }
|
||||
|
||||
.tab-content {
|
||||
display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden;
|
||||
}
|
||||
|
||||
.queue-list {
|
||||
padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
|
||||
}
|
||||
|
||||
.queue-item {
|
||||
display: flex; gap: 10px; padding: 10px;
|
||||
background: rgba(255,255,255,0.05); border-radius: 8px;
|
||||
border: 1px solid transparent; position: relative;
|
||||
}
|
||||
|
||||
.queue-item:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1); }
|
||||
|
||||
.q-img { width: 50px; height: 70px; object-fit: cover; border-radius: 4px; }
|
||||
.q-info { flex: 1; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
|
||||
.q-title { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.q-meta { font-size: 0.8rem; color: #aaa; }
|
||||
.q-remove {
|
||||
position: absolute; top: 5px; right: 5px;
|
||||
background: rgba(0,0,0,0.5); border: none; color: #ff6b6b;
|
||||
width: 24px; height: 24px; border-radius: 4px; cursor: pointer;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
}
|
||||
.q-remove:hover { background: #ff6b6b; color: white; }
|
||||
|
||||
.badge { background: var(--brand-color); padding: 1px 6px; border-radius: 10px; font-size: 0.7rem; margin-left: 6px; }
|
||||
.queue-empty { text-align: center; color: #666; margin-top: 40px; font-style: italic; }
|
||||
|
||||
.chat-sidebar-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
background: rgba(15, 15, 15, 0.95);
|
||||
border-left: 1px solid var(--glass-border);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.chat-sidebar-wrapper {
|
||||
height: 400px;
|
||||
border-left: none;
|
||||
border-top: 1px solid var(--glass-border);
|
||||
}
|
||||
}
|
||||
|
||||
.queue-item {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
padding: 10px;
|
||||
background: rgba(255,255,255,0.05);
|
||||
border-radius: 8px;
|
||||
border: 1px solid transparent;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
|
||||
.queue-item:hover {
|
||||
background: rgba(255,255,255,0.08);
|
||||
border-color: rgba(255,255,255,0.1);
|
||||
}
|
||||
|
||||
.q-img { width: 50px; height: 70px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
|
||||
.q-info { flex: 1; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
|
||||
|
||||
.q-actions {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
opacity: 0.7;
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
.queue-item:hover .q-actions { opacity: 1; }
|
||||
|
||||
.q-btn {
|
||||
background: rgba(255,255,255,0.1);
|
||||
border: none;
|
||||
color: white;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.q-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }
|
||||
.q-btn.play:hover { background: var(--brand-color); }
|
||||
.q-btn.remove:hover { background: #ff6b6b; }
|
||||
|
||||
.chat-sidebar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
background: rgba(15, 15, 15, 0.95);
|
||||
border-left: 1px solid var(--glass-border);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.sidebar-tabs {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
flex: 0 0 auto;
|
||||
height: 50px;
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
background: rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
.tab-btn {
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--text-muted);
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
border-bottom: 2px solid transparent;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.tab-btn:hover { background: rgba(255,255,255,0.05); color: white; }
|
||||
.tab-btn.active { border-bottom-color: var(--brand-color); color: white; background: rgba(255,255,255,0.02); }
|
||||
|
||||
.tab-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.queue-list {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.chat-messages {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
@@ -33,9 +33,6 @@
|
||||
<div class="video-area">
|
||||
<div class="room-header">
|
||||
<div class="header-left">
|
||||
<button id="leave-room-btn" class="btn-icon-glass" title="Leave" style="visibility: hidden;">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>
|
||||
</button>
|
||||
<div class="room-info">
|
||||
<h2 id="room-name">Loading...</h2>
|
||||
<div id="now-playing-info" class="np-fade">
|
||||
@@ -140,27 +137,36 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="chat-sidebar" id="chat-sidebar">
|
||||
<div class="chat-header">
|
||||
<h3>Chat</h3>
|
||||
<button id="toggle-users-btn" class="btn-icon-glass" title="Toggle User List">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
||||
<circle cx="9" cy="7" r="4"></circle>
|
||||
<path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<div class="chat-sidebar">
|
||||
<div class="sidebar-tabs">
|
||||
<button class="tab-btn active" id="tab-chat-btn">Chat</button>
|
||||
<button class="tab-btn" id="tab-queue-btn">Queue <span id="queue-count" class="badge">0</span></button>
|
||||
</div>
|
||||
|
||||
<div class="users-list" id="users-list" style="display: none;"></div>
|
||||
<div class="chat-messages" id="chat-messages"></div>
|
||||
<form class="chat-input" id="chat-form" autocomplete="off">
|
||||
<input type="text" id="chat-input" placeholder="Type a message..." maxlength="500" autocomplete="off" autocapitalize="off" spellcheck="false" />
|
||||
<button type="submit">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon></svg>
|
||||
</button>
|
||||
</form>
|
||||
<div id="tab-content-chat" class="tab-content active" style="display: flex; flex-direction: column; height: 100%;">
|
||||
<div style="padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: flex-end;">
|
||||
<button id="toggle-users-btn" class="btn-icon-glass" title="Toggle User List" style="width: 32px; height: 32px;">
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
||||
<circle cx="9" cy="7" r="4"></circle>
|
||||
<path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<div class="users-list" id="users-list" style="display: none;"></div>
|
||||
<div class="chat-messages" id="chat-messages"></div>
|
||||
<form class="chat-input" id="chat-form" autocomplete="off">
|
||||
<input type="text" id="chat-input" placeholder="Type a message..." maxlength="500" autocomplete="off" />
|
||||
<button type="submit">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon></svg>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
<div id="tab-content-queue" class="tab-content" style="display: none;">
|
||||
<div class="queue-list" id="queue-list">
|
||||
<div class="queue-empty">Queue is empty</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -256,10 +262,14 @@
|
||||
|
||||
<div id="config-error" style="color:#ff6b6b; font-size:0.9rem; display:none; background:rgba(255,0,0,0.1); padding:10px; border-radius:8px;"></div>
|
||||
|
||||
<div class="form-actions" style="margin-top:auto;">
|
||||
<button id="btn-launch-stream" class="btn-confirm full-width" disabled>
|
||||
<div class="form-actions" style="margin-top:auto; display:flex; gap:10px;">
|
||||
<button id="btn-add-queue" class="btn-cancel" style="flex:1; justify-content: center; border-color: var(--brand-color); color: white;" disabled>
|
||||
+ Add to Queue
|
||||
</button>
|
||||
|
||||
<button id="btn-launch-stream" class="btn-confirm" style="flex:1;" disabled>
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M8 5v14l11-7z"/></svg>
|
||||
Play in Room
|
||||
Play Now
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user