fix: position of sidebar switch button (#3995)
Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
@@ -19,10 +19,10 @@ export const SidebarHeader = (props: SidebarHeaderProps) => {
|
|||||||
const open = useAtomValue(appSidebarOpenAtom);
|
const open = useAtomValue(appSidebarOpenAtom);
|
||||||
return (
|
return (
|
||||||
<div className={navHeaderStyle} data-open={open}>
|
<div className={navHeaderStyle} data-open={open}>
|
||||||
|
<div style={{ flex: 1 }} />
|
||||||
{open && <SidebarSwitch />}
|
{open && <SidebarSwitch />}
|
||||||
{environment.isDesktop && (
|
{environment.isDesktop && (
|
||||||
<>
|
<>
|
||||||
{environment.isMacOs && <div style={{ flex: 1 }} />}
|
|
||||||
<IconButton
|
<IconButton
|
||||||
data-testid="app-sidebar-arrow-button-back"
|
data-testid="app-sidebar-arrow-button-back"
|
||||||
disabled={props.router?.history.current === 0}
|
disabled={props.router?.history.current === 0}
|
||||||
|
|||||||
Reference in New Issue
Block a user