From 2faafe86477ddb6bf048316cb92b646bde2879c2 Mon Sep 17 00:00:00 2001
From: yj <1336058017@qq.com>
Date: Wed, 19 Mar 2025 17:17:18 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/page/Meeting/index.module.scss | 76 ++++++++++++++++-------
src/page/Meeting/index.tsx | 96 +++++++++++++++---------------
2 files changed, 101 insertions(+), 71 deletions(-)
diff --git a/src/page/Meeting/index.module.scss b/src/page/Meeting/index.module.scss
index b5bfa47..1f2409d 100644
--- a/src/page/Meeting/index.module.scss
+++ b/src/page/Meeting/index.module.scss
@@ -1029,40 +1029,72 @@
}
.modePopover {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+
>div {
- width: 140px;
- height: 30px;
- line-height: 30px;
- border-radius: 5px;
- margin-bottom: 8px;
- cursor: pointer;
display: flex;
align-items: center;
- justify-content: center;
- >span {
- color: #EEEEEE;
+ >div {
+ width: 100px;
+ padding: 10px 0;
+ line-height: 30px;
+ border-radius: 5px;
+ cursor: pointer;
+ display: flex;
+ align-items: center;
+ flex-direction: column;
+ justify-content: center;
+ margin-right: 20px;
+
+ >span {
+ color: #EEEEEE;
+ }
+
+ >img {
+ height: 30px;
+ margin-bottom: 4px;
+ }
}
- >img {
- height: 16px;
- margin-right: 10px;
+ >div {
+ background-color: #101418;
+
+ &:hover {
+ background-color: lighten(#101418, 4%);
+ }
+
+ &:active {
+ background-color: darken(#101418, 4%);
+ }
}
- &:last-child {
- margin: 0;
+ .active {
+ background-color: lighten(#101418, 8%);
+ cursor: not-allowed;
+
+ &:hover {
+ background-color: lighten(#101418, 8%);
+ }
+
+ &:active {
+ background-color: lighten(#101418, 8%);
+ }
+ }
+
+ :last-child {
+ margin-right: 0px;
}
}
- >div {
- background-color: #101418;
+ >span {
+ margin-top: 4px;
+ color: white;
- &:hover {
- background-color: lighten(#101418, 4%);
- }
-
- &:active {
- background-color: darken(#101418, 4%);
+ >span {
+ margin-left: 4px;
}
}
}
diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx
index 3123734..75e7f91 100644
--- a/src/page/Meeting/index.tsx
+++ b/src/page/Meeting/index.tsx
@@ -2642,34 +2642,28 @@ const Meeting: React.FC = () => {
}
// 设置模式
const setSyncView = (mode: string) => {
- if (isShare && mode === 'FreedomMode') {
- message.error('共享中,无法切换模式')
- } else {
- confirm({
- title: '提示',
- icon: