forked from Shiloh/remnantchat
feat(ui): show divider in app bar
This commit is contained in:
parent
35e0b88cbe
commit
b9ec16ad4d
@ -1,4 +1,4 @@
|
|||||||
import { styled } from '@mui/material/styles'
|
import { styled, useTheme } from '@mui/material/styles'
|
||||||
|
|
||||||
import IconButton from '@mui/material/IconButton'
|
import IconButton from '@mui/material/IconButton'
|
||||||
import MuiAppBar, { AppBarProps as MuiAppBarProps } from '@mui/material/AppBar'
|
import MuiAppBar, { AppBarProps as MuiAppBarProps } from '@mui/material/AppBar'
|
||||||
@ -9,6 +9,7 @@ import Tooltip from '@mui/material/Tooltip'
|
|||||||
import Typography from '@mui/material/Typography'
|
import Typography from '@mui/material/Typography'
|
||||||
import Slide from '@mui/material/Slide'
|
import Slide from '@mui/material/Slide'
|
||||||
import Zoom from '@mui/material/Zoom'
|
import Zoom from '@mui/material/Zoom'
|
||||||
|
import Divider from '@mui/material/Divider'
|
||||||
|
|
||||||
import ExpandMore from '@mui/icons-material/ExpandMore'
|
import ExpandMore from '@mui/icons-material/ExpandMore'
|
||||||
import Fullscreen from '@mui/icons-material/Fullscreen'
|
import Fullscreen from '@mui/icons-material/Fullscreen'
|
||||||
@ -85,6 +86,7 @@ export const ShellAppBar = ({
|
|||||||
isFullscreen,
|
isFullscreen,
|
||||||
setIsFullscreen,
|
setIsFullscreen,
|
||||||
}: ShellAppBarProps) => {
|
}: ShellAppBarProps) => {
|
||||||
|
const theme = useTheme()
|
||||||
const { peerList, isEmbedded, showRoomControls } = useContext(ShellContext)
|
const { peerList, isEmbedded, showRoomControls } = useContext(ShellContext)
|
||||||
const handleQRCodeClick = () => setIsQRCodeDialogOpen(true)
|
const handleQRCodeClick = () => setIsQRCodeDialogOpen(true)
|
||||||
const onClickFullscreen = () => setIsFullscreen(!isFullscreen)
|
const onClickFullscreen = () => setIsFullscreen(!isFullscreen)
|
||||||
@ -149,6 +151,12 @@ export const ShellAppBar = ({
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
{isEmbedded ? null : (
|
||||||
|
<Divider
|
||||||
|
orientation="vertical"
|
||||||
|
sx={{ height: theme.spacing(3.5), mx: theme.spacing(1) }}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={
|
title={
|
||||||
showRoomControls ? 'Hide Room Controls' : 'Show Room Controls'
|
showRoomControls ? 'Hide Room Controls' : 'Show Room Controls'
|
||||||
|
Loading…
Reference in New Issue
Block a user