This commit is contained in:
parent
16182b733b
commit
d68bf9c3f6
6
main.js
6
main.js
|
|
@ -570,6 +570,12 @@ app.on('ready', () => {
|
|||
case 'noticeWindow':
|
||||
childWindow[config.key].setBounds({ width: config.width, height: config.height })
|
||||
break;
|
||||
default:
|
||||
mainWindow.setMinimumSize(250, config.height);
|
||||
mainWindow.setMaximumSize(250, config.height);
|
||||
mainWindow.setSize(250, config.height)
|
||||
mainWindow.setBounds({ height: config.height })
|
||||
break;
|
||||
}
|
||||
});
|
||||
// 隐藏显示子窗口
|
||||
|
|
|
|||
|
|
@ -115,6 +115,20 @@
|
|||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.meetingAbsoluteText {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
color: white;
|
||||
text-align: center;
|
||||
z-index: 1;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -147,6 +147,7 @@ const Meeting: React.FC = () => {
|
|||
const [roomUserList, setRoomUserList] = useState<any>([])
|
||||
const [_speackUid, setSpeackUid] = useState<any>([])
|
||||
const [chatList, setChatList] = useState<any>([])
|
||||
const [isExpand, setIsExpand] = useState(false)
|
||||
const [currentVideoId, setCurrentVideoId] = useState('')
|
||||
let [currentSeconds, setCurrentSeconds] = useState(0)
|
||||
const [currentEffective, setCurrentEffective] = useState(4)
|
||||
|
|
@ -2084,6 +2085,13 @@ const Meeting: React.FC = () => {
|
|||
{footerList[0][1].active ? <div className={styles.meetingAbsoluteLoading}>
|
||||
<Avatar name={user.userName} />
|
||||
</div> : null}
|
||||
<div className={`${styles.meetingAbsoluteText} drag`} onClick={() => {
|
||||
setIsExpand(!isExpand)
|
||||
window.electron.setChildWindow({
|
||||
height: isExpand ? 160 : 20,
|
||||
key: 'main'
|
||||
})
|
||||
}}><span>{isExpand ? '展开' : '收起'}</span></div>
|
||||
</div> : null}
|
||||
{contextHolder}
|
||||
<div className={styles.meetingHeader}>
|
||||
|
|
|
|||
Loading…
Reference in New Issue