mirror of
https://github.com/outline/outline.git
synced 2026-11-28 08:14:58 +03:00
fix: Mobile shows menu button on shared documents without a menu
This commit is contained in:
1 parent
84c97ae5ff
commit
55005d4447
2 files changed
+7
-6
No files matched your search
@@ -34,16 +34,17 @@ const Link = styled.a`
|
||||
fill: ${s("text")};
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: ${s("sidebarBackground")};
|
||||
}
|
||||
|
||||
${breakpoint("tablet")`
|
||||
z-index: ${depths.sidebar + 1};
|
||||
background: ${s("sidebarBackground")};
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 16px;
|
||||
|
||||
&:hover {
|
||||
background: ${s("sidebarControlHoverBackground")};
|
||||
}
|
||||
`};
|
||||
`;
|
||||
|
||||
|
||||
@@ -190,7 +190,7 @@ function DocumentHeader({
|
||||
<StyledHeader
|
||||
$hidden={isEditingFocus}
|
||||
title={document.title}
|
||||
hasSidebar={!!sharedTree}
|
||||
hasSidebar={sharedTree && sharedTree.children?.length > 0}
|
||||
left={
|
||||
isMobile ? (
|
||||
<TableOfContentsMenu headings={headings} />
|
||||
|
||||
Reference in new issue
Block a user