nice contrasting global control section
This commit is contained in:
@@ -133,7 +133,7 @@ export default function ConversationDetails() {
|
|||||||
<Container maxWidth={false} sx={{ position: 'relative', flex: 1, overflow: 'auto' }}>
|
<Container maxWidth={false} sx={{ position: 'relative', flex: 1, overflow: 'auto' }}>
|
||||||
<ConversationHistory />
|
<ConversationHistory />
|
||||||
|
|
||||||
<Box
|
{/* <Box
|
||||||
sx={{
|
sx={{
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
zIndex: 10,
|
zIndex: 10,
|
||||||
@@ -145,7 +145,7 @@ export default function ConversationDetails() {
|
|||||||
<Fab color="primary" aria-label="add" size="medium">
|
<Fab color="primary" aria-label="add" size="medium">
|
||||||
<FiSun />
|
<FiSun />
|
||||||
</Fab>
|
</Fab>
|
||||||
</Box>
|
</Box> */}
|
||||||
</Container>
|
</Container>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -20,9 +20,10 @@ import {
|
|||||||
Menu,
|
Menu,
|
||||||
MenuItem,
|
MenuItem,
|
||||||
ListItemIcon,
|
ListItemIcon,
|
||||||
|
Fab,
|
||||||
} from '@mui/material';
|
} from '@mui/material';
|
||||||
import { blueGrey } from '@mui/material/colors';
|
import { blueGrey } from '@mui/material/colors';
|
||||||
import { FiZap, FiHeadphones, FiLogOut, FiMonitor } from 'react-icons/fi';
|
import { FiZap, FiHeadphones, FiLogOut, FiMonitor, FiSun } from 'react-icons/fi';
|
||||||
import { useSnackbar } from 'notistack';
|
import { useSnackbar } from 'notistack';
|
||||||
|
|
||||||
import Conversation from '@nirvana/core/src/models/conversation.model';
|
import Conversation from '@nirvana/core/src/models/conversation.model';
|
||||||
@@ -545,6 +546,11 @@ export function TerminalProvider({ children }: { children?: React.ReactNode }) {
|
|||||||
justifyContent: 'flex-start',
|
justifyContent: 'flex-start',
|
||||||
gap: 2,
|
gap: 2,
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
|
||||||
|
zIndex: 10,
|
||||||
|
boxShadow: 10,
|
||||||
|
|
||||||
|
bgcolor: blueGrey[200],
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Stack
|
<Stack
|
||||||
@@ -561,7 +567,7 @@ export function TerminalProvider({ children }: { children?: React.ReactNode }) {
|
|||||||
<IconButton
|
<IconButton
|
||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
size="small"
|
size="small"
|
||||||
sx={{ mr: 'auto', borderRadius: 1 }}
|
sx={{ borderRadius: 1 }}
|
||||||
aria-controls={open ? 'account-menu' : undefined}
|
aria-controls={open ? 'account-menu' : undefined}
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
aria-expanded={open ? 'true' : undefined}
|
aria-expanded={open ? 'true' : undefined}
|
||||||
@@ -569,27 +575,42 @@ export function TerminalProvider({ children }: { children?: React.ReactNode }) {
|
|||||||
<Avatar alt={user.displayName} src={user.photoURL} />
|
<Avatar alt={user.displayName} src={user.photoURL} />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|
||||||
<Box
|
<Stack
|
||||||
sx={{
|
direction={'row'}
|
||||||
mr: 'auto',
|
alignItems={'center'}
|
||||||
}}
|
|
||||||
component="div"
|
component="div"
|
||||||
|
sx={{ mr: 'auto', flex: 1 }}
|
||||||
>
|
>
|
||||||
|
<Tooltip title="Sound configuration">
|
||||||
|
<IconButton color="inherit" size="small">
|
||||||
|
<FiHeadphones />
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip title="Desktop modes">
|
||||||
|
<IconButton color="inherit" size="small">
|
||||||
|
<FiMonitor />
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
|
|
||||||
<Button size={'small'} color={'secondary'} variant="text">
|
<Button size={'small'} color={'secondary'} variant="text">
|
||||||
flow
|
flow
|
||||||
</Button>
|
</Button>
|
||||||
</Box>
|
</Stack>
|
||||||
|
|
||||||
<Tooltip title="Sound configuration">
|
{/* todo: add a third mode which is when toggle broadcasting */}
|
||||||
<IconButton color="inherit" size="small">
|
{selectedConversation ? (
|
||||||
<FiHeadphones />
|
<Tooltip title="Speak or toggle by clicking here!">
|
||||||
</IconButton>
|
<Fab color="primary" aria-label="add" size="medium">
|
||||||
</Tooltip>
|
<FiSun />
|
||||||
<Tooltip title="Desktop modes">
|
</Fab>
|
||||||
<IconButton color="inherit" size="small">
|
</Tooltip>
|
||||||
<FiMonitor />
|
) : (
|
||||||
</IconButton>
|
<Tooltip title="No conversation selected!">
|
||||||
</Tooltip>
|
<IconButton color="inherit" size="small">
|
||||||
|
<FiSun />
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
<Menu
|
<Menu
|
||||||
|
|||||||
Reference in New Issue
Block a user