feat: refactor VideoRoomPage by removing unused components and optimizing state management

This commit is contained in:
shiyu
2026-05-16 13:55:51 +08:00
parent 6cfafbe066
commit 2af2a8756f
2 changed files with 24 additions and 178 deletions

View File

@@ -61,9 +61,6 @@
}
.video-room-shell {
display: grid;
grid-template-columns: minmax(0, 1fr) 360px;
gap: 18px;
max-width: 1720px;
margin: 0 auto;
}
@@ -100,113 +97,6 @@
color: var(--ant-color-primary, #1677ff);
}
.video-room-side {
display: flex;
flex-direction: column;
gap: 14px;
min-width: 0;
}
.video-room-panel.ant-card {
border-color: rgba(255, 255, 255, 0.08);
background: #14191d;
}
.video-room-panel .ant-card-head {
min-height: 48px;
border-bottom-color: rgba(255, 255, 255, 0.08);
}
.video-room-panel .ant-card-head-title {
color: rgba(255, 255, 255, 0.9);
font-weight: 600;
}
.video-room-panel .ant-card-body {
padding: 16px;
}
.video-room-dot {
display: block;
width: 8px;
height: 8px;
border-radius: 999px;
background: var(--ant-color-error, #ff4d4f);
box-shadow: 0 0 0 4px rgba(255, 77, 79, 0.14);
}
.video-room-dot.is-connected {
background: var(--ant-color-success, #52c41a);
box-shadow: 0 0 0 4px rgba(82, 196, 26, 0.14);
}
.video-room-status-list {
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 16px;
}
.video-room-status-item {
display: flex;
align-items: center;
gap: 12px;
min-width: 0;
padding: 12px;
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 8px;
background: rgba(255, 255, 255, 0.03);
}
.video-room-status-item > .anticon {
flex: none;
color: var(--ant-color-primary, #1677ff);
font-size: 18px;
}
.video-room-status-item div {
min-width: 0;
}
.video-room-status-item span {
display: block;
margin-bottom: 2px;
color: rgba(255, 255, 255, 0.45);
font-size: 12px;
}
.video-room-status-item strong {
display: block;
overflow: hidden;
color: rgba(255, 255, 255, 0.88);
font-size: 14px;
font-weight: 600;
text-overflow: ellipsis;
white-space: nowrap;
}
.video-room-primary-action.ant-btn {
height: 40px;
}
.video-room-panel__text {
margin: 0 0 14px;
color: rgba(255, 255, 255, 0.55);
font-size: 14px;
line-height: 1.6;
}
@media (max-width: 1180px) {
.video-room-shell {
grid-template-columns: 1fr;
}
.video-room-side {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 760px) {
.video-room-page {
padding: 14px;
@@ -231,8 +121,4 @@
height: 56vh;
min-height: 280px;
}
.video-room-side {
display: flex;
}
}