fix: 修复agora插件展开 收起的热区异常并顺便增加了分割线以优化显示

pull/64/head
moonrailgun 2 years ago
parent 9cd7e10081
commit 35e557f286

@ -1,6 +1,6 @@
import React, { useState } from 'react'; import React, { useState } from 'react';
import styled from 'styled-components'; import styled from 'styled-components';
import { ErrorBoundary } from '@capital/component'; import { Divider, ErrorBoundary } from '@capital/component';
import { MeetingView, MeetingViewProps } from './MeetingView'; import { MeetingView, MeetingViewProps } from './MeetingView';
import { SpeakerNames } from './SpeakerNames'; import { SpeakerNames } from './SpeakerNames';
@ -17,14 +17,14 @@ const FloatWindow = styled.div`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.folder-btn { .folder-btn-container {
position: absolute; position: absolute;
bottom: -30px; bottom: -30px;
left: 0; left: 0;
right: 0; right: 0;
display: flex; display: flex;
> div { > .folder-btn {
background-color: var(--tc-content-background-color); background-color: var(--tc-content-background-color);
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2); box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
height: 30px; height: 30px;
@ -55,9 +55,12 @@ export const FloatMeetingWindow: React.FC<MeetingViewProps> = React.memo(
<MeetingView {...props} /> <MeetingView {...props} />
</ErrorBoundary> </ErrorBoundary>
<div className="folder-btn" onClick={() => setFolder(!folder)}> <div className="folder-btn-container">
<div> <div className="folder-btn" onClick={() => setFolder(!folder)}>
<SpeakerNames /> <SpeakerNames />
<Divider type="vertical" />
<span style={{ marginLeft: 4 }}>{folder ? '展开' : '收起'}</span> <span style={{ marginLeft: 4 }}>{folder ? '展开' : '收起'}</span>
</div> </div>
</div> </div>

Loading…
Cancel
Save